This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:34v+pythonsetrecipients: + v+python, fdrake, facundobatista, orsenthil
2010-11-24 03:50:34v+pythonsetmessageid: <1290570634.45.0.196562474666.issue10484@psf.upfronthosting.co.za>
2010-11-24 03:50:32v+pythonlinkissue10484 messages
2010-11-24 03:50:32v+pythoncreate