diff options
| author | Tim Graham <timograham@gmail.com> | 2015-03-04 08:11:25 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-03-18 08:47:16 -0400 |
| commit | b6b3cb9899214a23ebb0f4ebf0e0b300b0ee524f (patch) | |
| tree | c203aa325b0cb7d55b50178965c4f6c63cdada13 /tests/utils_tests | |
| parent | 581a43948f09c4e1717ba2d1d99480dcff74ac44 (diff) | |
[1.6.x] Fixed an infinite loop possibility in strip_tags().
This is a security fix; disclosure to follow shortly.
Diffstat (limited to 'tests/utils_tests')
| -rw-r--r-- | tests/utils_tests/test_html.py | 3 |
1 files changed, 3 insertions, 0 deletions
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<p a >b</p>c', 'abc'), ('d<a:b c:d>e</p>f', 'def'), ('<strong>foo</strong><a href="http://example.com">bar</a>', '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) |
