[issue7250] wsgiref.handlers.CGIHandler caches os.environ, leaking info between requests

Phillip J. Eby report at bugs.python.org
Tue Nov 3 22:13:57 CET 2009


Phillip J. Eby <pje at telecommunity.com> added the comment:

Hm.  In retrospect, CGIHandler should probably just set os_environ to an
empty dictionary in its class body (thereby not using the cached
environ), and this would then work correctly for repeated uses.

This would be a clean bugfix and wouldn't affect behavior for any
existing uses of CGIHandler that weren't already worse broken than the
GAE case.  ;-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7250>
_______________________________________


More information about the Python-bugs-list mailing list