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
Steve Holden
8a978f7cde
Fix bug 427345 [related to IE's additional input on POST request].
2003-01-08 18:53:18 +00:00
Guido van Rossum
b390315872
Must catch TypeError from int(length).
2002-10-17 16:21:35 +00:00
Guido van Rossum
e3ec296df8
Typo repair. Please include in any backports.
2002-08-20 20:07:10 +00:00
Guido van Rossum
0bd7832285
SF patch 595846 by Brett Cannon: Update environ for CGIHTTPServer.py
...
This patch causes CGIHTTPServer to update os.environ regardless of how
it tries to handle calls (fork, popen*, etc.).
Backport bugfix candidate.
2002-08-20 19:55:06 +00:00
Guido van Rossum
b54c27c861
Fix for SF bug 570678 (can't flush read-only file on Mac OS X).
2002-08-01 21:12:35 +00:00
Raymond Hettinger
32200aeac6
Replaced obsolete stat module constants with equivalent attributes
2002-06-01 19:51:15 +00:00
Guido van Rossum
8ca162f417
Partial introduction of bools where appropriate.
2002-04-07 06:36:23 +00:00
Tim Peters
bc0e910826
Convert a pile of obvious "yes/no" functions to return bool.
2002-04-04 22:55:58 +00:00
Skip Montanaro
3c643d8db3
tighten up except - int() only raises ValueError
2002-03-23 05:47:31 +00:00
Guido van Rossum
8cb6540652
Wesley Chun's SF patch 511380: add CGIHTTPServer error supt for Win32
...
This uses os.popen3 (if it exists) to ensure that errors from a
non-Python CGI script are logged.
Bugfix candidate.
2002-02-01 16:27:59 +00:00
Guido van Rossum
0afde13b43
Fix two typos, one noted by Noah Spurrier in SF bug #475166 , the
...
second noted after a second's thought about what the next line should
do. :-(
2001-10-26 03:38:46 +00:00
Guido van Rossum
bcbdc95e90
SF patch #467430 .
...
- replace some log_error() calls with log_message()
- flush self.rfile before forking too (hope this works on Windows)
2001-10-17 06:45:56 +00:00