Ticket #3421: url_re.patch
File url_re.patch, 552 bytes (added by , 17 years ago) |
---|
-
django/newforms/fields.py
diff -ru django_orig/django/newforms/fields.py django_patched/django/newforms/fields.py
old new 340 340 341 341 url_re = re.compile( 342 342 r'^https?://' # http:// or https:// 343 r'(?: [A-Z0-9-]+\.)+[A-Z]{2,6}' # domain343 r'(?:(?:[A-Z0-9-]+\.)+[A-Z]{2,6}|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})' # domain or ip 344 344 r'(?::\d+)?' # optional port 345 345 r'(?:/?|/\S+)$', re.IGNORECASE) 346 346