[Python-checkins] python/dist/src/Lib cgi.py,1.79,1.80
jlgijsbers at users.sourceforge.net
jlgijsbers at users.sourceforge.net
Sat Aug 14 17:39:36 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31994
Modified Files:
cgi.py
Log Message:
Let cgi.parse_header() properly unquote headers (patch #1008597).
Index: cgi.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgi.py,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** cgi.py 19 Jul 2004 15:37:24 -0000 1.79
--- cgi.py 14 Aug 2004 15:39:34 -0000 1.80
***************
*** 339,342 ****
--- 339,343 ----
if len(value) >= 2 and value[0] == value[-1] == '"':
value = value[1:-1]
+ value = value.replace('\\\\', '\\').replace('\\"', '"')
pdict[name] = value
return key, pdict
More information about the Python-checkins
mailing list