Changeset 9189
- Timestamp:
- 10/07/08 05:39:16 (3 months ago)
- Files:
-
- django/trunk/django/core/handlers/modpython.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/handlers/modpython.py
r9064 r9189 7 7 from django.core.urlresolvers import set_script_prefix 8 8 from django.utils import datastructures 9 from django.utils.encoding import force_unicode, smart_str 9 from django.utils.encoding import force_unicode, smart_str, iri_to_uri 10 10 11 11 # NOTE: do *not* import settings (or any module which eventually imports … … 65 65 66 66 def get_full_path(self): 67 return '%s%s' % (self.path, self._req.args and ('?' + self._req.args) or '') 67 # RFC 3986 requires self._req.args to be in the ASCII range, but this 68 # doesn't always happen, so rather than crash, we defensively encode it. 69 return '%s%s' % (self.path, self._req.args and ('?' + iri_to_uri(self._req.args)) or '') 68 70 69 71 def is_secure(self):
