cgi, parse_header and semi-colon

Richard Brodie R.Brodie at
Fri Jun 6 17:33:35 CEST 2008

"Sylvain" <sylvain.vivien at> wrote in message 
news:b80af57f-897d-4fd1-bebc-df0782143314 at

> If we upload a file with a semi-colon (i.e : "C:/my;file.jpg") :
> cgi.FieldStorage.filename returns only "my" everything after the semi-
> colon is missing
> Is it a bug or i'm missing something ?

I doubt it's bug in parse_header, since it's meant to split on
semicolons. Whether it's a bug in one of its callers, or the client
not escaping sufficiently, I couldn't say offhand.

More information about the Python-list mailing list