[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:1.81.2.3
Martijn Pieters
mj@zope.com
Tue, 12 Nov 2002 11:06:31 -0500
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv16987/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_6-branch
HTTPRequest.py
Log Message:
Fix for collector issue #650: Implicit marshalling for lists where the first
two values are tainted failed because no implicit conversion to a list took
place.
=== Zope/lib/python/ZPublisher/HTTPRequest.py 1.81.2.2 => 1.81.2.3 ===
--- Zope/lib/python/ZPublisher/HTTPRequest.py:1.81.2.2 Fri Sep 27 13:34:39 2002
+++ Zope/lib/python/ZPublisher/HTTPRequest.py Tue Nov 12 11:06:30 2002
@@ -760,6 +760,9 @@
taintedform[tainted_key] = copied
else:
taintedform[tainted_key] = [copied]
+ elif not isinstance(taintedform[tainted_key], lt):
+ taintedform[tainted_key] = [
+ taintedform[tainted_key]]
taintedform[tainted_key].append(tainted)
elif taintedform.has_key(tainted_key):