[Python-bugs-list] [Bug #129788] cgi module. FieldStorage class returns keys blank fields.

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Jan 2001 07:29:19 -0800


Bug #129788, was updated on 2001-Jan-23 01:28
Here is a current snapshot of the bug.

Project: Python
Category: Python Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: nobody
Assigned to : akuchling
Summary: cgi module. FieldStorage class returns keys blank fields.

Details: In module cgi.py

The FieldStorage class returns keys for blank values even though the
keep_blank_values property is set to 0

The problem lies in the parse_qsl method.
The second last line of the function
  r.append((name, value))
should read
  if (len(value) or keep_blank_values):
      r.append((name, value))  

I hope this can be corrected.

Thanks

Follow-Ups:

Date: 2001-Jan-26 07:29
By: fdrake

Comment:
Assigned to Andrew since he knows more about CGI stuff than I ever expect
to.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=129788&group_id=5470