Author: adrian
Date: 2007-10-12 21:57:57 -0500 (Fri, 12 Oct 2007)
New Revision: 6475
Modified:
django/trunk/django/core/handlers/modpython.py
django/trunk/django/core/handlers/wsgi.py
Log:
Fixed #5738 -- Fixed bug with defective Unicode strings in a URL
Modified: django/trunk/django/core/handlers/modpython.py
===================================================================
--- django/trunk/django/core/handlers/modpython.py 2007-10-12 18:47:11 UTC
(rev 6474)
+++ django/trunk/django/core/handlers/modpython.py 2007-10-13 02:57:57 UTC
(rev 6475)
@@ -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
Modified: django/trunk/django/core/handlers/wsgi.py
===================================================================
--- django/trunk/django/core/handlers/wsgi.py 2007-10-12 18:47:11 UTC (rev
6474)
+++ django/trunk/django/core/handlers/wsgi.py 2007-10-13 02:57:57 UTC (rev
6475)
@@ -75,7 +75,7 @@
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()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---