[Python-bugs-list] [ python-Bugs-633504 ] cgi.py drops commandline arguments

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Nov 2002 15:10:25 -0800


Bugs item #633504, was opened at 2002-11-04 16:51
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=633504&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Randall Randall (randallrandall)
Assigned to: Nobody/Anonymous (nobody)
Summary: cgi.py drops commandline arguments

Initial Comment:
Keyword arguments in URLs are currently ignored by the
cgi.parse_qsl() function, even though they are
explicitly included by cgi.parse(), i.e.: 
<pre>
...
    elif sys.argv[1:]:
        if qs: qs = qs + '&'
        qs = qs + sys.argv[1]
...
</pre>

A simple patch to fix this follows:
<pre>
216c216
<             continue
---
>             else: nv.append('')
</pre>

This fix doesn't affect those using strictparsing=1 ,
which will still fail to include anything without an
equals ('=').



----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-11-14 18:10

Message:
Logged In: YES 
user_id=6380

I'd be willing to have this fixed, if I could understand the
problem. Can you show an example program and how it does not
do what you expect?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=633504&group_id=5470