[Zope-CVS] CVS: Packages/HTTPMounter - HTTPMounter.py:1.8 VERSION.txt:1.3
Andreas Jung
andreas@digicool.com
Thu, 23 May 2002 15:17:15 -0400
Update of /cvs-repository/Packages/HTTPMounter
In directory cvs.zope.org:/tmp/cvs-serv17305
Modified Files:
HTTPMounter.py VERSION.txt
Log Message:
using PATH_INFO or PATH_TRANSLATED is not reliable since it does
not contain the desired information when running in combination
with VHM and URL rewriting. Instead we calculate the path informations
from SERVER_URL and URL1.
=== Packages/HTTPMounter/HTTPMounter.py 1.7 => 1.8 ===
""" """
own_path = string.join(self.getPhysicalPath(), '/')
- sub_path = string.replace(REQUEST['PATH_INFO'], own_path, '')
+ path_info = string.replace(REQUEST['URL1'] , REQUEST['SERVER_URL'],'')
+ sub_path = string.replace(path_info, own_path, '')
+
if not sub_path or sub_path=='/': sub_path = self.default_document
url = self.url
if url[-1] != '/': url = url + '/'
=== Packages/HTTPMounter/VERSION.txt 1.2 => 1.3 ===
+0.12