cgi handling of embedded quotes

milgram at milgram at
Sun Apr 16 05:16:15 CEST 2000


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

import cgi
form = cgi.FieldStorage()        


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 Milgram        milgram at
P.O. Box 8376, Langley Park, MD 20787
(301) 422-4626 (-3047 fax)

More information about the Python-list mailing list