mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Fixed #5738 -- Fixed bug with defective Unicode strings in a URL
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -75,7 +75,7 @@ def safe_copyfileobj(fsrc, fdst, length=16*1024, size=0):
|
||||
class WSGIRequest(http.HttpRequest):
|
||||
def __init__(self, environ):
|
||||
self.environ = environ
|
||||
self.path = force_unicode(environ['PATH_INFO'])
|
||||
self.path = force_unicode(environ['PATH_INFO'], errors='ignore')
|
||||
self.META = environ
|
||||
self.method = environ['REQUEST_METHOD'].upper()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user