Commit 1504d36b authored by Andreas Jung's avatar Andreas Jung

- Collector 2077: fixed problem with ACTUAL_URL and SiteRoot

parent 09f5e800
...@@ -21,6 +21,8 @@ Zope Changes ...@@ -21,6 +21,8 @@ Zope Changes
- Collector #2116: sequence.sort() did not work properly - Collector #2116: sequence.sort() did not work properly
locale related comparison methods locale related comparison methods
- Collector 2077: fixed problem with ACTUAL_URL and SiteRoot
Zope 2.8.7 (2007/05/29) Zope 2.8.7 (2007/05/29)
......
...@@ -117,10 +117,13 @@ class SiteRoot(Traverser, Implicit): ...@@ -117,10 +117,13 @@ class SiteRoot(Traverser, Implicit):
if srd[i] is None: if srd[i] is None:
srd[i] = request.environ.get(srp, None) srd[i] = request.environ.get(srp, None)
if srd[0] is not None: if srd[0] is not None:
request['ACTUAL_URL'] = request['ACTUAL_URL'].replace(request['SERVER_URL'], srd[0])
request['SERVER_URL'] = srd[0] request['SERVER_URL'] = srd[0]
request._resetURLS() request._resetURLS()
if srd[1] is not None: if srd[1] is not None:
old = request['URL']
request.setVirtualRoot(srd[1]) request.setVirtualRoot(srd[1])
request['ACTUAL_URL'] = request['ACTUAL_URL'].replace(old, request['URL'])
def get_size(self): def get_size(self):
'''Make FTP happy''' '''Make FTP happy'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment