Changes between Initial Version and Version 1 of Ticket #7355
- Timestamp:
- Jun 2, 2008, 10:03:45 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7355 – Description
initial v1 4 4 5 5 To replicate: 6 {{{ 6 7 >>> from django.utils.html import urlize 7 8 >>> words = "Hi there https://www.google.com" 8 9 >>> urlize(words) 9 10 u'Hi there <a href="http://https://www.google.com">http://https://www.google.com</a>' 11 }}} 10 12 11 13 I did a search in trac for "urlize https" and came up with no hits. As far as I can tell this bug has been around for a while, not sure why no one would've caught this. 12 14 15 {{{ 13 16 Patch: 14 17 =================================================================== … … 24 27 (middle.endswith('.org') or middle.endswith('.net') or middle.endswith('.com'))): 25 28 middle = 'http://%s' % middle 26 27 28 ---- 29 }}} 29 30 30 31 31 32 And a test to check for this 33 {{{ 32 34 Index: tests.py 33 35 =================================================================== … … 45 47 >>> wordcount('') 46 48 0 47 49 }}}