From b6b3cb9899214a23ebb0f4ebf0e0b300b0ee524f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 4 Mar 2015 08:11:25 -0500 Subject: [1.6.x] 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') diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 9c1f22f01f..3682dcee68 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -80,6 +80,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