Commit b09775f3 authored by Andreas Jung's avatar Andreas Jung

- Collector #2291: fixed cookie path in Zope Version Control

parent 9e334a81
...@@ -52,6 +52,9 @@ Zope Changes ...@@ -52,6 +52,9 @@ Zope Changes
- Collector #2290: better handling of subject header in Mailhost.py - Collector #2290: better handling of subject header in Mailhost.py
- Collector #2291: fixed cookie path in Zope Version Control
Zope 2.4 alpha 1 Zope 2.4 alpha 1
Features Added Features Added
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Version object""" """Version object"""
__version__='$Revision: 1.48 $'[11:-2] __version__='$Revision: 1.49 $'[11:-2]
import Globals, time import Globals, time
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
...@@ -172,7 +172,7 @@ class Version(Persistent,Implicit,RoleManager,Item): ...@@ -172,7 +172,7 @@ class Version(Persistent,Implicit,RoleManager,Item):
"""Begin working in a version""" """Begin working in a version"""
RESPONSE.setCookie( RESPONSE.setCookie(
Globals.VersionNameName, self.cookie, Globals.VersionNameName, self.cookie,
path=REQUEST['SCRIPT_NAME'], path=(REQUEST['BASEPATH1'] or '/'),
) )
if (REQUEST.has_key('SERVER_SOFTWARE') and if (REQUEST.has_key('SERVER_SOFTWARE') and
REQUEST['SERVER_SOFTWARE'][:9]=='Microsoft'): REQUEST['SERVER_SOFTWARE'][:9]=='Microsoft'):
......
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