Martin Panter added the comment:
The CGI server no longer unquotes the query string thanks to the fix for Issue
24657. The fix should be in the next (2.7.11) release.
--
nosy: +martin.panter
resolution: -> out of date
stage: -> resolved
status: open -> closed
superseder: ->
John S added the comment:
Image you had the following URL.
http://localhost:8000/cgi-bin/test.cgi?q=Dolce%26Gabbanap=1
os.environ['QUERY_STRING'] would hold the value
q=DolceGabbanap=1
If you ran the following code, you would be unable to get the value of the q
paramater in full.
import
New submission from John S:
I created a simple CGI script that outputs the query string passed to it:
```
#!/usr/bin/env python
import os
print 'Content-Type: text/html\n\n'
print os.environ['QUERY_STRING']
```
I saved it as cgi-bin/test.cgi and made it executable. I then ran `python -m
Eric V. Smith added the comment:
I would expect the cgi script to receive the unescaped values. Can you point to
some reference that says otherwise?
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24661