From 95336e48ad4ed472f910d37c78db9c8688408432 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Tue, 3 May 2022 16:50:52 +0000 Subject: [PATCH] Add a test for #36958. Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21559 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../common_mark/external_links_filter_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5