[Zope-Checkins] CVS: Zope2 - HTTPRequest.py:1.47

Brian Lloyd brian@digiciool.com
Mon, 12 Mar 2001 16:26:20 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/ZPublisher
In directory korak:/home/brian/temp/mainline_test/lib/python/ZPublisher

Modified Files:
	HTTPRequest.py 
Log Message:
Added security assertion to headers member of FileUpload



--- Updated File HTTPRequest.py in package Zope2 --
--- HTTPRequest.py	2001/03/01 03:22:51	1.46
+++ HTTPRequest.py	2001/03/12 21:26:20	1.47
@@ -1016,7 +1016,12 @@
 
         self.headers=aFieldStorage.headers
         self.filename=aFieldStorage.filename
-    
+
+        # Add an assertion to the rfc822.Message object that implements
+        # self.headers so that managed code can access them.
+        try:    self.headers.__allow_access_to_unprotected_subobjects__ = 1
+        except: pass
+
 
 parse_cookie_lock=allocate_lock()
 def parse_cookie(text,