[Python-checkins] r78568 - in python/branches/py3k: Lib/wsgiref/handlers.py Misc/NEWS

barry.warsaw python-checkins at python.org
Mon Mar 1 22:53:00 CET 2010


Author: barry.warsaw
Date: Mon Mar  1 22:53:00 2010
New Revision: 78568

Log:
Manually copy patch for bug 7250 from the release26-maint branch.  I suck
because I did this in the wrong order and couldn't smack svnmerge into
submission.



Modified:
   python/branches/py3k/Lib/wsgiref/handlers.py
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/wsgiref/handlers.py
==============================================================================
--- python/branches/py3k/Lib/wsgiref/handlers.py	(original)
+++ python/branches/py3k/Lib/wsgiref/handlers.py	Mon Mar  1 22:53:00 2010
@@ -431,6 +431,10 @@
     """
 
     wsgi_run_once = True
+    # Do not allow os.environ to leak between requests in Google App Engine
+    # and other multi-run CGI use cases.  This is not easily testable.
+    # See http://bugs.python.org/issue7250
+    os_environ = {}
 
     def __init__(self):
         BaseCGIHandler.__init__(

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Mon Mar  1 22:53:00 2010
@@ -262,6 +262,9 @@
 Library
 -------
 
+- Issue #7250: Fix info leak of os.environ across multi-run uses of
+  wsgiref.handlers.CGIHandler.
+
 - Issue #1729305: Fix doctest to handle encode error with "backslashreplace".
 
 - Issue #691291: codecs.open() should not convert end of lines on reading and


More information about the Python-checkins mailing list