Browse files

another failing test case for square brackets.

  • Loading branch information...
1 parent baae4b8 commit 161cafb6f695df5d886ed94ab2489a420cd97ecc @tominsam tominsam committed Dec 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/regressiontests/defaultfilters/tests.py
View
4 tests/regressiontests/defaultfilters/tests.py
@@ -310,6 +310,10 @@ def test_urlize(self):
self.assertEqual(urlize('[see www.example.com]'),
'[see <a href="http://www.example.com" rel="nofollow">www.example.com</a>]' )
+ # Check urlize doesn't crash when square bracket is prepended to url (#19070)
+ self.assertEqual(urlize('see test[at[example.com'),
+ 'see <a href="http://test[at[example.com" rel="nofollow">test[at[example.com</a>' )
+
def test_wordcount(self):
self.assertEqual(wordcount(''), 0)

0 comments on commit 161cafb

Please sign in to comment.