classification
Title: cgi.py does not correctly handle fields with ';'
Type:
Components: Library (Lib) Versions: Python 2.3
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, kv11111
Priority: normal Keywords: patch

Created on 2004-10-27 12:18 by kv11111, last changed 2004-10-28 06:05 by fdrake.

Files
File name Uploaded Description Edit Remove
cgi.patch kv11111, 2004-10-27 12:18 Patch to cgi.py
Messages
msg47175 (view) Author: Vova (kv11111) Date: 2004-10-27 12:18
When I'm trying to upload file named 'a;b' cgi.py says
that it is named '"a'.
Simple patch to fix it attached.
P.S. The same bug are present in mimetools.py and may
be in other same places.
msg47176 (view) Author: Fred L. Drake, Jr. (fdrake) Date: 2004-10-28 06:05
Logged In: YES 
user_id=3066

The Content-Disposition header is defined in RFC 2183:

http://www.faqs.org/rfcs/rfc2183.html
History
Date User Action Args
2004-10-27 12:18:26kv11111create