Ticket #16812: 16812.patch
File 16812.patch, 753 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 scheme, netloc, path, query, fragment = urlparse.urlsplit(url) 97 path = urllib.quote(path) 98 url = urlparse.urlunsplit((scheme, netloc, path, query, fragment)) 95 99 broken_error = ValidationError( 96 100 _(u'This URL appears to be a broken link.'), code='invalid_link') 97 101 try: