Skip to content

Commit

Permalink
Fixed #5738 -- Fixed bug with defective Unicode strings in a URL
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Oct 13, 2007
1 parent b053177 commit 8ae74ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django/core/handlers/modpython.py
Expand Up @@ -14,7 +14,7 @@
class ModPythonRequest(http.HttpRequest):
def __init__(self, req):
self._req = req
self.path = force_unicode(req.uri)
self.path = force_unicode(req.uri, errors='ignore')

def __repr__(self):
# Since this is called as part of error handling, we need to be very
Expand Down
2 changes: 1 addition & 1 deletion django/core/handlers/wsgi.py
Expand Up @@ -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()

Expand Down

0 comments on commit 8ae74ea

Please sign in to comment.