From 4bd76641b845022c6a8ae5c68a1bd15145b02935 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sun, 3 May 2009 20:27:25 +0000 Subject: [PATCH] docstring update. --- Lib/CGIHTTPServer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 13bfcdd22f..ad49e93e04 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -76,6 +76,9 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.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). -- 2.50.1