diff options
author | Raymond Hettinger <python@rcn.com> | 2003-07-14 06:56:32 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-07-14 06:56:32 (GMT) |
commit | 92f200b569d402e1c4adabfb4c7dc7c9c11891fe (patch) | |
tree | 812e52e2ab6a6f37b9b7750c21f284b23943e4b0 /Lib/CGIHTTPServer.py | |
parent | 7a6c733c3b8ee131d7860ecb0877837e412c2959 (diff) | |
download | cpython-92f200b569d402e1c4adabfb4c7dc7c9c11891fe.zip cpython-92f200b569d402e1c4adabfb4c7dc7c9c11891fe.tar.gz cpython-92f200b569d402e1c4adabfb4c7dc7c9c11891fe.tar.bz2 |
SF bug #770601: CGIHTTPServer and environment variables (bug + solution)
(contributed by Vincent Delft.)
The script updated os.environ but failed to pass the whole environment
to the child process (the CGI script).
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r-- | Lib/CGIHTTPServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 437ee80..7f481b7 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -215,7 +215,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): pass os.dup2(self.rfile.fileno(), 0) os.dup2(self.wfile.fileno(), 1) - os.execve(scriptfile, args, env) + os.execve(scriptfile, args, os.environ) except: self.server.handle_error(self.request, self.client_address) os._exit(127) |