Message122259
| Author |
v+python |
| Recipients |
facundobatista, fdrake, orsenthil, v+python |
| Date |
2010年11月24日.03:50:32 |
| SpamBayes Score |
4.828189e-05 |
| Marked as misclassified |
No |
| Message-id |
<1290570634.45.0.196562474666.issue10484@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|