From: Marius Balteanu Date: Tue, 3 May 2022 16:50:52 +0000 (+0000) Subject: Add a test for #36958. X-Git-Tag: 5.1.0~612 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=95336e48ad4ed472f910d37c78db9c8688408432;p=redmine.git Add a test for #36958. Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21559 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 %(user), filter(%(user)) end + + def test_malformed_uri_should_not_cause_exception + assert_nothing_raised do + filter(%(Malformed URI)) + end + end end end