Author claudep
Recipients claudep
Date 2012-12-14.08:28:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355473710.36.0.278942451351.issue16679@psf.upfronthosting.co.za>
In-reply-to
Content
In wsgiref/simple_server.py (WSGIRequestHandler.get_environ), Python 3 is currently populating the env['PATH_INFO'] variable by decoding the URL path, assuming it was encoded with 'iso-8859-1', which appears to be wrong, according to RFC 3986/3987.
For example, if you request the path /سلام in any modern browser, PATH_INFO will contain "/سلاÙ".
'iso-8859-1' should be replaced by 'utf-8' for decoding.

Note that this was introduced as part of the fix for http://bugs.python.org/issue10155
History
Date User Action Args
2012-12-14 08:28:30claudepsetrecipients: + claudep
2012-12-14 08:28:30claudepsetmessageid: <1355473710.36.0.278942451351.issue16679@psf.upfronthosting.co.za>
2012-12-14 08:28:30claudeplinkissue16679 messages
2012-12-14 08:28:29claudepcreate