diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-03 16:50:52 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-03 16:50:52 +0000 |
commit | 95336e48ad4ed472f910d37c78db9c8688408432 (patch) | |
tree | 5dd5293946cf25de470c1e82bd197b4ced21c0eb /test/unit/lib/redmine/wiki_formatting | |
parent | a9e2d1aeb576dc8a80a7f0362b89565a473e9fed (diff) | |
download | redmine-95336e48ad4ed472f910d37c78db9c8688408432.tar.gz redmine-95336e48ad4ed472f910d37c78db9c8688408432.zip |
Add a test for #36958.
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21559 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/wiki_formatting')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb index fcfc3156b..d4b76c401 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb @@ -44,5 +44,11 @@ if Object.const_defined?(:CommonMarker) def test_mailto_links_should_have_email_class assert_equal %(<a href="mailto:user@example.org" class="email">user</a>), filter(%(<a href="mailto:user@example.org">user</a>)) end + + def test_malformed_uri_should_not_cause_exception + assert_nothing_raised do + filter(%(<a href="http://example.com/foo#bar#">Malformed URI</a>)) + end + end end end |