Commit Graph

55 Commits

Author SHA1 Message Date
Martin Panter
74c76c8f06 Issue #24657: Prevent CGIRequestHandler from collapsing the URL query
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.
2015-10-03 05:55:46 +00:00
Martin Panter
cff22eb2bf Issue #25232: Fix CGIRequestHandler's splitting of URL query
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
Ned Deily
c89376292e Issue #21323: Fix CGIHTTPServer to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.
2014-07-12 22:01:15 -07:00
Benjamin Peterson
8d24d77c63 url unquote the path before checking if it refers to a CGI script (closes #21766) 2014-06-14 18:36:29 -07:00
Benjamin Peterson
1ef959ac3d use the collapsed path in the run_cgi method (closes #19435) 2013-10-30 12:43:09 -04:00
Senthil Kumaran
5f7e7345cf Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests 2012-04-12 02:23:23 +08:00
Senthil Kumaran
fb2e874707 fix the incorrect changes made for PATH_INFO value - Issue10484 2012-04-11 03:07:57 +08:00
Senthil Kumaran
51a65c9161 2.7 - Issue #10484: Fix the CGIHTTPServer's PATH_INFO handling problem 2012-03-16 01:07:16 -07:00
Brian Curtin
3606f9570e Merged revisions 86195 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86195 | brian.curtin | 2010-11-05 10:04:48 -0500 (Fri, 05 Nov 2010) | 3 lines

  Close subprocess pipes in the non-UNIX section of run_cgi.
  Clears a number of ResourceWarnings in test_httpservers.
........
2010-11-05 15:12:47 +00:00
Senthil Kumaran
a9bd0cc67e Merged revisions 85202 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85202 | senthil.kumaran | 2010-10-03 23:25:45 +0530 (Sun, 03 Oct 2010) | 4 lines

  Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
........
2010-10-03 18:16:52 +00:00
Senthil Kumaran
5dff3544f3 Fixing the NameError on Windows - issue1235 2009-11-11 17:22:35 +00:00
Senthil Kumaran
3a145a18c8 CGIHTTPRequestHandler.run_cgi() to use subprocess for Non Unix platforms. Fix
based on Issue1235.
2009-11-11 01:34:44 +00:00
Gregory P. Smith
4bd76641b8 docstring update. 2009-05-03 20:27:25 +00:00
Gregory P. Smith
923ba361d8 - Issue #2254: Fix CGIHTTPServer information disclosure. Relative paths are
now collapsed within the url properly before looking in cgi_directories.
2009-04-06 06:33:26 +00:00
Georg Brandl
4ed9be733b #3345: fix docstring. 2008-07-16 22:09:17 +00:00
Collin Winter
83b2bf6d9a Patch #1481079: Support of HTTP_REFERER in CGIHTTPServer.py 2007-03-09 03:15:56 +00:00
Tim Peters
f733abb783 Whitespace normalization. 2007-01-30 03:03:46 +00:00
Andrew M. Kuchling
b29069d6b6 [Bug #737202; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-directories 2006-12-22 13:25:02 +00:00
Jeremy Hylton
6414cd8717 SF patch #1055159 via Titus Brown: Document redirect limitation.
Bug fix candidate.
2004-12-22 14:19:09 +00:00
Martin v. Löwis
a28b3e6dfb Patch #727483: Add AUTH_TYPE and REMOTE_USER. 2004-08-29 16:53:26 +00:00
Guido van Rossum
70ec0b42b5 Fix for SF 777848.
I've been bitten by this myself in the past half year.
I hope this fix is right.
I'll backport this to 2.3.
2004-03-20 22:18:03 +00:00
Tim Peters
27f49610af SF patch 508730 CGIHTTPServer execfile should save cwd
UNTESTED!!!

This simple two-line patch has been sitting on SF for more than 2 years.
I'm guessing it's because nobody knows how to test it -- I sure don't.
It doesn't look like you can get to this part of the code on Unixish
or Windows systems, so the "how to test it?" puzzle has more than one
part.  OTOH, if this is dead code, it doesn't matter either if I just
broke it <wink>.
2004-03-20 21:51:12 +00:00
Walter Dörwald
70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Raymond Hettinger
92f200b569 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).
2003-07-14 06:56:32 +00:00
Raymond Hettinger
e2f18377ff SF bug #430160: CGIHTTPServer.py POST bug using IE
Minor improvement to previous bugfix.
Eating the remaining characters would lead to an endless loop
without a termination test.
2003-06-29 05:06:56 +00:00