cgi handling of embedded quotes

milgram at cgpp.com milgram at cgpp.com
Sat Apr 15 23:16:15 EDT 2000


Hi,

have a cgi script written in python, use the cgi module and begin
something like this:

import cgi
form = cgi.FieldStorage()        

etc. 

The form uses post method.

I recently discovered that form entries containing double-quotes cause
the data entry to be truncated, that is, if the user enters:

101 "I" St.

in a text field, the variable, after dereferencing form, gets
truncated right at the first double-quote.

Surely there's an easy way to deal with this, but I can't figure out
what it is. Any pointers to docs, or other suggestions?

thanks in advance,

Judah

-- 
Judah Milgram        milgram at cgpp.com
P.O. Box 8376, Langley Park, MD 20787
(301) 422-4626 (-3047 fax)



More information about the Python-list mailing list