From: Benjamin Peterson Date: Fri, 8 May 2009 20:54:42 +0000 (+0000) Subject: port r72246 X-Git-Tag: v3.1rc1~209 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7deeeeed701998a1676a1e6a9fb9b0951f03d72;p=thirdparty%2FPython%2Fcpython.git port r72246 --- diff --git a/Lib/http/server.py b/Lib/http/server.py index 09fa44c954de..193964ff0f58 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).