From 1c83fc88d6928a5ab53bc3dde79dad3cc0bfcfdc Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 4 Mar 2015 08:11:25 -0500 Subject: Fixed an infinite loop possibility in strip_tags(). This is a security fix; disclosure to follow shortly. --- tests/utils_tests/test_html.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/utils_tests/test_html.py') diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index db49046682..7456b67d50 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -82,6 +82,9 @@ class TestUtilsHtml(TestCase): ('a

b

c', 'abc'), ('de

f', 'def'), ('foobar', 'foobar'), + # caused infinite loop on Pythons not patched with + # http://bugs.python.org/issue20288 + ('&gotcha&#;<>', '&gotcha&#;<>'), ) for value, output in items: self.check_output(f, value, output) -- cgit v1.3