]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
port r72246
authorBenjamin Peterson <benjamin@python.org>
Fri, 8 May 2009 20:54:42 +0000 (20:54 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 8 May 2009 20:54:42 +0000 (20:54 +0000)
Lib/http/server.py

index 09fa44c954de2abcfcebfe1a706b73f8c7067802..193964ff0f581e74f2fb0efc0e5872ecdd039f69 100644 (file)
@@ -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).