Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

another failing test case for square brackets.

  • Loading branch information...
commit 161cafb6f695df5d886ed94ab2489a420cd97ecc 1 parent baae4b8
Tom Insam authored December 03, 2012
4  tests/regressiontests/defaultfilters/tests.py
@@ -310,6 +310,10 @@ def test_urlize(self):
310 310
         self.assertEqual(urlize('[see www.example.com]'),
311 311
             '[see <a href="http://www.example.com" rel="nofollow">www.example.com</a>]' )
312 312
 
  313
+        # Check urlize doesn't crash when square bracket is prepended to url (#19070)
  314
+        self.assertEqual(urlize('see test[at[example.com'),
  315
+            'see <a href="http://test[at[example.com" rel="nofollow">test[at[example.com</a>' )
  316
+
313 317
 
314 318
     def test_wordcount(self):
315 319
         self.assertEqual(wordcount(''), 0)

0 notes on commit 161cafb

Please sign in to comment.
Something went wrong with that request. Please try again.