Ticket #16812: 16812.2.patch

File 16812.2.patch, 673 bytes (added by aaugustin, 4 years ago)
  • django/core/validators.py

     
    11import platform
    22import re
     3import urllib
    34import urllib2
    45import urlparse
    56
     
    9293                "User-Agent": self.user_agent,
    9394            }
    9495            url = url.encode('utf-8')
     96            # Quote characters from the unreserved set
     97            url = urllib.quote(url, "!*'();:@&=+$,/?#[]")
    9598            broken_error = ValidationError(
    9699                _(u'This URL appears to be a broken link.'), code='invalid_link')
    97100            try:
Back to Top