From 161cafb6f695df5d886ed94ab2489a420cd97ecc Mon Sep 17 00:00:00 2001 From: Tom Insam Date: Mon, 3 Dec 2012 12:08:22 +0000 Subject: [PATCH] another failing test case for square brackets. --- tests/regressiontests/defaultfilters/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/regressiontests/defaultfilters/tests.py b/tests/regressiontests/defaultfilters/tests.py index 52268da2ec..8596f8c801 100644 --- a/tests/regressiontests/defaultfilters/tests.py +++ b/tests/regressiontests/defaultfilters/tests.py @@ -310,6 +310,10 @@ class DefaultFiltersTests(TestCase): self.assertEqual(urlize('[see www.example.com]'), '[see www.example.com]' ) + # Check urlize doesn't crash when square bracket is prepended to url (#19070) + self.assertEqual(urlize('see test[at[example.com'), + 'see test[at[example.com' ) + def test_wordcount(self): self.assertEqual(wordcount(''), 0)