Ticket #11903: 11903.diff

File 11903.diff, 906 bytes (added by krisneuharth, 15 years ago)

Patch for #11903

  • django/core/handlers/wsgi.py

     
    1111from django.core.urlresolvers import set_script_prefix
    1212from django.utils import datastructures
    1313from django.utils.encoding import force_unicode, iri_to_uri
     14from django.utils.http import urlencode
    1415
    1516# See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    1617STATUS_CODE_TEXT = {
     
    8788            path_info = u'/'
    8889        self.environ = environ
    8990        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))
    9192        self.META = environ
    9293        self.META['PATH_INFO'] = path_info
    9394        self.META['SCRIPT_NAME'] = script_name
Back to Top