diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-09-27 17:11:53 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-09-27 17:11:53 +0000 |
commit | 468377d6b54e9a29a9f1949b7c90df7f84ccb80a (patch) | |
tree | ed09e613bcca547533d5abd73ac8d7811ec53086 /test/unit/lib | |
parent | 0224b79ccda081669145e8a92118e55632648771 (diff) | |
download | redmine-468377d6b54e9a29a9f1949b7c90df7f84ccb80a.tar.gz redmine-468377d6b54e9a29a9f1949b7c90df7f84ccb80a.zip |
Merged r21850 and r21851 from trunk to 5.0-stable (#37237).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21859 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb | 4 |
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; } ' ], |