Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#40 HTTPServlet.servletURI index errors

closed-accepted
WebKit (58)
5
2003-10-22
2003-03-04
No

The following fixes some index errors:

def servletURI(self):
"""This is the URI of the servlet, without
any query strings or extra path info"""

sspath=self.serverSidePath() #ensure that
extraURLPath has been stripped
pinfo=self.pathInfo()
if not self._extraURLPath:
if pinfo and pinfo[-1]=="/": pinfo =
pinfo[:-1]
return pinfo
pos = pinfo.rfind(self._extraURLPath)
if pos==-1:
URI=pinfo
else:
URI=pinfo[:pos]
if URI and URI[-1]=="/": URI=URI[:-1]
return URI

Discussion

  • Logged In: YES
    user_id=173690

    Thanks for the bug report. I've made the change in CVS.

     
    • assigned_to: nobody --> jdhildeb
    • status: open --> closed-accepted