[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:1.84

Martijn Pieters mj@zope.com
Tue, 12 Nov 2002 11:06:07 -0500


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv16489/lib/python/ZPublisher

Modified Files:
	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.83 => 1.84 ===
--- Zope/lib/python/ZPublisher/HTTPRequest.py:1.83	Fri Sep 27 13:36:11 2002
+++ Zope/lib/python/ZPublisher/HTTPRequest.py	Tue Nov 12 11:06:07 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):