From: Go MAEDA Date: Mon, 16 Jan 2023 12:57:42 +0000 (+0000) Subject: Merged r22025 from trunk to 5.0-stable (#38073). X-Git-Tag: 5.0.5~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b18780bb3676d46df876f385961ec58afd09d1f8;p=redmine.git Merged r22025 from trunk to 5.0-stable (#38073). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22048 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb b/lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb index adb301290..54e0db4cb 100644 --- a/lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb +++ b/lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb @@ -29,8 +29,8 @@ module Redmine ALLOWED_CSS_PROPERTIES = %w[ color background-color - width - height + width min-width max-width + height min-height max-height padding padding-left padding-right padding-top padding-bottom margin margin-left margin-right margin-top margin-bottom border border-left border-right border-top border-bottom border-radius border-style border-collapse border-spacing diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb index 8de671cc6..e3ac4bd33 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb @@ -97,6 +97,10 @@ if Object.const_defined?(:CommonMarker) 'hello"', 'hello"' ], + [ + '', + '' + ], [ 'Lorem ipsum dolor sit
amet ', 'Lorem ipsum dolor sit
amet .foo { color: #fff; } '