Ticket #16812: 16812.2.patch
File 16812.2.patch, 673 bytes (added by , 13 years ago) |
---|
-
django/core/validators.py
1 1 import platform 2 2 import re 3 import urllib 3 4 import urllib2 4 5 import urlparse 5 6 … … 92 93 "User-Agent": self.user_agent, 93 94 } 94 95 url = url.encode('utf-8') 96 # Quote characters from the unreserved set 97 url = urllib.quote(url, "!*'();:@&=+$,/?#[]") 95 98 broken_error = ValidationError( 96 99 _(u'This URL appears to be a broken link.'), code='invalid_link') 97 100 try: