[New-bugs-announce] [issue16679] Wrong URL path decoding
Claude Paroz
report at bugs.python.org
Fri Dec 14 09:28:30 CET 2012
New submission from Claude Paroz:
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
----------
components: Library (Lib)
messages: 177449
nosy: claudep
priority: normal
severity: normal
status: open
title: Wrong URL path decoding
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16679>
_______________________________________
More information about the New-bugs-announce
mailing list