[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - globalbrowsermenuservice.py:1.16
Jim Fulton
jim@zope.com
Thu, 12 Jun 2003 05:34:16 -0400
Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv27151/src/zope/app/publisher/browser
Modified Files:
globalbrowsermenuservice.py
Log Message:
Added logic to ignore query strings when checking path access.
=== Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py:1.15 Sat Jun 7 01:46:02 2003
+++ Zope3/src/zope/app/publisher/browser/globalbrowsermenuservice.py Thu Jun 12 05:34:15 2003
@@ -124,9 +124,13 @@
elif action:
# Otherwise, test access by attempting access
+ path = action
+ l = action.find('?')
+ if l >= 0:
+ path = action[:l]
try:
v = traverser.traverseRelativeURL(
- request, object, action)
+ request, object, path)
# XXX
# tickle the security proxy's checker
# we're assuming that view pages are callable