Changes between Initial Version and Version 1 of Ticket #7355


Ignore:
Timestamp:
Jun 2, 2008, 10:03:45 PM (16 years ago)
Author:
clint
Comment:

Uh.. sorry for the horrible formatting...

v

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7355 – Description

    initial v1  
    44
    55To replicate:
     6{{{
    67>>> from django.utils.html import urlize
    78>>> words = "Hi there https://www.google.com"
    89>>> urlize(words)
    910u'Hi there <a href="http://https://www.google.com">http://https://www.google.com</a>'
     11}}}
    1012
    1113I 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.
    1214
     15{{{
    1316Patch:
    1417===================================================================
     
    2427                     (middle.endswith('.org') or middle.endswith('.net') or middle.endswith('.com'))):
    2528                 middle = 'http://%s' % middle
    26 
    27 
    28 ----
     29}}}
    2930
    3031
    3132And a test to check for this
     33{{{
    3234Index: tests.py
    3335===================================================================
     
    4547 >>> wordcount('')
    4648 0
    47 
     49}}}
Back to Top