Ticket #7355: html.py.diff
File html.py.diff, 813 bytes (added by , 16 years ago) |
---|
-
django/utils/html.py
99 99 lead, middle, trail = match.groups() 100 100 if safe_input: 101 101 middle = mark_safe(middle) 102 if middle.startswith('www.') or ('@' not in middle and not middle.startswith('http://') and \102 if middle.startswith('www.') or ('@' not in middle and not (middle.startswith('http://') or middle.startswith('https://')) and \ 103 103 len(middle) > 0 and middle[0] in string.ascii_letters + string.digits and \ 104 104 (middle.endswith('.org') or middle.endswith('.net') or middle.endswith('.com'))): 105 105 middle = 'http://%s' % middle