Kaydet (Commit) a7deeeee authored tarafından Benjamin Peterson's avatar Benjamin Peterson

port r72246

üst 25c95f12
...@@ -883,6 +883,9 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler): ...@@ -883,6 +883,9 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
(dir, rest) if self.path requires running a CGI script. (dir, rest) if self.path requires running a CGI script.
Returns False otherwise. 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 The default implementation tests whether the normalized url
path begins with one of the strings in self.cgi_directories path begins with one of the strings in self.cgi_directories
(and the next character is a '/' or the end of the string). (and the next character is a '/' or the end of the string).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment