cgi, parse_header and semi-colon

Richard Brodie R.Brodie at rl.ac.uk
Fri Jun 6 11:33:35 EDT 2008


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

> 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