[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

Xiang Zhang report at bugs.python.org
Fri Sep 25 17:26:40 CEST 2015


Xiang Zhang added the comment:

The path with query component are unquoted entirely and then pass into
_url_collapse_path.
I think this behaviour is wrong and according to rfc3875 query component
should be left encoded in QUERY_STRING.
This patch seems to solve the problem. It passes the tests and with
martin's script, it gets:

('QUERY_STRING', 'k=aa%2F%2Fbb&//q//p//=//a//b//')

has the same behaviour with apache.

----------
keywords: +patch
Added file: http://bugs.python.org/file40573/cgihandler.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24657>
_______________________________________


More information about the Python-bugs-list mailing list