Message122259
Here is a replacement for the body of is_cgi that will work with the current _url_collapse_path_split function, but it seems to me that it is ineffecient to do multiple splits and joins of the path between the two functions.
splitpath = server._url_collapse_path_split(self.path)
# more processing required due to possible PATHINFO parts
# not clear above function really does what is needed here,
# nor just how general it is!
splitpath = '/'.join( splitpath ).split('/', 2 )
head = '/' + splitpath[ 1 ]
tail = splitpath[ 2 ]
if head in self.cgi_directories:
self.cgi_info = head, tail
return True
return False |
|
Date |
User |
Action |
Args |
2010-11-24 03:50:34 | v+python | set | recipients:
+ v+python, fdrake, facundobatista, orsenthil |
2010-11-24 03:50:34 | v+python | set | messageid: <1290570634.45.0.196562474666.issue10484@psf.upfronthosting.co.za> |
2010-11-24 03:50:32 | v+python | link | issue10484 messages |
2010-11-24 03:50:32 | v+python | create | |
|