[Zope-CVS] CVS: Packages/HTTPMounter - HTTPMounter.py:1.6

Andreas Jung andreas@digicool.com
Fri, 17 May 2002 10:48:43 -0400


Update of /cvs-repository/Packages/HTTPMounter
In directory cvs.zope.org:/tmp/cvs-serv14552

Modified Files:
	HTTPMounter.py 
Log Message:
a trailing '/' in the request path info is now handled correctly


=== Packages/HTTPMounter/HTTPMounter.py 1.5 => 1.6 ===
         own_path = string.join(self.getPhysicalPath(), '/')
         sub_path = string.replace(REQUEST['PATH_INFO'], own_path, '')
-        if not sub_path: sub_path = self.default_document
+        if not sub_path or sub_path=='/': sub_path = self.default_document
         url = self.url 
         if url[-1] != '/': url = url + '/'
         url = url + sub_path