Ticket #5738: unicode_url_bug.patch
File unicode_url_bug.patch, 1.1 KB (added by , 17 years ago) |
---|
-
django/core/handlers/wsgi.py
75 75 class WSGIRequest(http.HttpRequest): 76 76 def __init__(self, environ): 77 77 self.environ = environ 78 self.path = force_unicode(environ['PATH_INFO'] )78 self.path = force_unicode(environ['PATH_INFO'], errors='ignore') 79 79 self.META = environ 80 80 self.method = environ['REQUEST_METHOD'].upper() 81 81 -
django/core/handlers/modpython.py
14 14 class ModPythonRequest(http.HttpRequest): 15 15 def __init__(self, req): 16 16 self._req = req 17 self.path = force_unicode(req.uri )17 self.path = force_unicode(req.uri, errors='ignore') 18 18 19 19 def __repr__(self): 20 20 # Since this is called as part of error handling, we need to be very