diff -ur django.orig/core/handlers/modpython.py django/core/handlers/modpython.py
old
|
new
|
|
66 | 66 | def get_full_path(self): |
67 | 67 | # RFC 3986 requires self._req.args to be in the ASCII range, but this |
68 | 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 '') |
| 69 | return iri_to_uri('%s%s' % (self.path, self._req.args and ('?' + iri_to_uri(self._req.args)) or '')) |
70 | 70 | |
71 | 71 | def is_secure(self): |
72 | 72 | try: |
diff -ur django.orig/core/handlers/wsgi.py django/core/handlers/wsgi.py
old
|
new
|
|
122 | 122 | def get_full_path(self): |
123 | 123 | # RFC 3986 requires query string arguments to be in the ASCII range. |
124 | 124 | # Rather than crash if this doesn't happen, we encode defensively. |
125 | | return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + iri_to_uri(self.environ.get('QUERY_STRING', ''))) or '') |
| 125 | return iri_to_uri('%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + iri_to_uri(self.environ.get('QUERY_STRING', ''))) or '')) |
126 | 126 | |
127 | 127 | def is_secure(self): |
128 | 128 | return 'wsgi.url_scheme' in self.environ \ |