summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-09-26 22:35:48 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-09-26 22:35:48 +0000
commit2faadcba8b1afa1716fb5de65c8b411ab4e47360 (patch)
tree516e282f52a5c6b18c993252c34ceeedb945a5f5 /test
parent0bb977cb4157eb0ca689a276abee25a4b5992bbc (diff)
downloadredmine-2faadcba8b1afa1716fb5de65c8b411ab4e47360.tar.gz
redmine-2faadcba8b1afa1716fb5de65c8b411ab4e47360.zip
Allow select custom CSS properties (#37237).
Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21850 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb4
1 files changed, 4 insertions, 0 deletions
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 8cd6074ee..063727413 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
@@ -94,6 +94,10 @@ if Object.const_defined?(:CommonMarker)
# rubocop:disable Layout/LineLength
STRINGS = [
[
+ '<span style="color: #333; background: url(\'https://example.com/evil.svg\')">hello</span>"',
+ '<span style="color: #333; ">hello</span>"'
+ ],
+ [
'<b>Lo<!-- comment -->rem</b> <a href="pants" title="foo" style="text-decoration: underline;">ipsum</a> <a href="http://foo.com/"><strong>dolor</strong></a> sit<br/>amet <style>.foo { color: #fff; }</style> <script>alert("hello world");</script>',
'<b>Lorem</b> <a href="pants" title="foo">ipsum</a> <a href="http://foo.com/"><strong>dolor</strong></a> sit<br>amet .foo { color: #fff; } '
],