[Zope-Checkins] CVS: Packages/ZPublisher - BaseRequest.py:1.51.2.4
Andreas Jung
andreas at andreas-jung.com
Thu Dec 2 11:49:58 EST 2004
Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv8805/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_7-branch
BaseRequest.py
Log Message:
- The REQUEST now contains a new entry ACTUAL_URL which contains the
full URL without query string as it appears within the location bar of
the browser. The key has been added to provide a single key that is
available for vhosted and non-vhosted installations.
- Collector #1605: VHM did not quote URLs
=== Packages/ZPublisher/BaseRequest.py 1.51.2.3 => 1.51.2.4 ===
--- Packages/ZPublisher/BaseRequest.py:1.51.2.3 Wed Nov 3 12:46:34 2004
+++ Packages/ZPublisher/BaseRequest.py Thu Dec 2 11:49:28 2004
@@ -182,6 +182,9 @@
if response is None: response=self.response
debug_mode=response.debug_mode
+ # remember path for later use
+ browser_path = path
+
# Cleanup the path list
if path[:1]=='/': path=path[1:]
if path[-1:]=='/': path=path[:-1]
@@ -244,6 +247,7 @@
path.reverse()
request['TraversalRequestNameStack'] = request.path = path
+ request['ACTUAL_URL'] = request['URL'] + quote(browser_path)
entry_name = ''
try:
More information about the Zope-Checkins
mailing list