Ticket #11903: 11903.diff
File 11903.diff, 906 bytes (added by , 15 years ago) |
---|
-
django/core/handlers/wsgi.py
11 11 from django.core.urlresolvers import set_script_prefix 12 12 from django.utils import datastructures 13 13 from django.utils.encoding import force_unicode, iri_to_uri 14 from django.utils.http import urlencode 14 15 15 16 # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html 16 17 STATUS_CODE_TEXT = { … … 87 88 path_info = u'/' 88 89 self.environ = environ 89 90 self.path_info = path_info 90 self.path = '%s%s' % ( script_name, path_info)91 self.path = '%s%s' % (urlencode(script_name), urlencode(path_info)) 91 92 self.META = environ 92 93 self.META['PATH_INFO'] = path_info 93 94 self.META['SCRIPT_NAME'] = script_name