Message177449
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 |
|
Date |
User |
Action |
Args |
2012-12-14 08:28:30 | claudep | set | recipients:
+ claudep |
2012-12-14 08:28:30 | claudep | set | messageid: <1355473710.36.0.278942451351.issue16679@psf.upfronthosting.co.za> |
2012-12-14 08:28:30 | claudep | link | issue16679 messages |
2012-12-14 08:28:29 | claudep | create | |
|