diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-08 20:54:42 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-08 20:54:42 (GMT) |
commit | a7deeeeed701998a1676a1e6a9fb9b0951f03d72 (patch) | |
tree | 37fb83830e837265cc58487dbdda6be0004de0e1 /Lib/http/server.py | |
parent | 25c95f12987c08f446f355db6b9a807f3dea76a0 (diff) | |
download | cpython-a7deeeeed701998a1676a1e6a9fb9b0951f03d72.zip cpython-a7deeeeed701998a1676a1e6a9fb9b0951f03d72.tar.gz cpython-a7deeeeed701998a1676a1e6a9fb9b0951f03d72.tar.bz2 |
port r72246
Diffstat (limited to 'Lib/http/server.py')
-rw-r--r-- | Lib/http/server.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py index 09fa44c..193964f 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -883,6 +883,9 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler): (dir, rest) if self.path requires running a CGI script. Returns False otherwise. + If any exception is raised, the caller should assume that + self.path was rejected as invalid and act accordingly. + The default implementation tests whether the normalized url path begins with one of the strings in self.cgi_directories (and the next character is a '/' or the end of the string). |