Apply the change suggested by PJE for issue 7250. Unfortunately, we couldn't

come up with a unit test. :(
This commit is contained in:
Barry Warsaw 2010-03-01 21:34:34 +00:00
parent 75f82fdb7a
commit f6706296a2
2 changed files with 7 additions and 0 deletions

View File

@ -468,6 +468,10 @@ class CGIHandler(BaseCGIHandler):
"""
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__(

View File

@ -74,6 +74,9 @@ Core and Builtins
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