mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
port r72246
This commit is contained in:
parent
25c95f1298
commit
a7deeeeed7
1 changed files with 3 additions and 0 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue