This is an automated email from the ASF dual-hosted git repository. brondsem pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 851e965af45c337d3ecf143cd1a95c42a5858c21 Author: Dillon Walls <[email protected]> AuthorDate: Thu Jul 1 21:24:35 2021 +0000 test to verify whitelisting of <summary> tags --- Allura/allura/tests/test_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Allura/allura/tests/test_utils.py b/Allura/allura/tests/test_utils.py index 7d576b9..f2cd9a6 100644 --- a/Allura/allura/tests/test_utils.py +++ b/Allura/allura/tests/test_utils.py @@ -310,6 +310,11 @@ class TestHTMLSanitizer(unittest.TestCase): p = utils.ForgeHTMLSanitizerFilter(walker) assert_equal(self.simple_tag_list(p), ['p', 'input', 'input', 'p']) + def test_html_sanitizer_summary(self): + walker = self.walker_from_text('<details open="open"><summary>An Summary</summary><ul><li>Bullet Item</li></ul></details>') + p = utils.ForgeHTMLSanitizerFilter(walker) + assert_equal(self.simple_tag_list(p), ['details', 'summary', 'summary', 'ul', 'li', 'li', 'ul', 'details']) + def test_ip_address(): req = Mock()
