Commit d0055a1a authored by Chris McDonough's avatar Chris McDonough

Incorporated Frank Tegtmeyers long-ago patch for encoding browser ids that...

Incorporated Frank Tegtmeyers long-ago patch for encoding browser ids that already have query elements in encodeUrl properly by using & instead of just &.
parent 4affa3b6
......@@ -75,7 +75,7 @@
#
############################################################################
__version__='$Revision: 1.6 $'[11:-2]
__version__='$Revision: 1.7 $'[11:-2]
import Globals
from Persistence import Persistent
from ZODB import TimeStamp
......@@ -266,7 +266,7 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs):
raise BrowserIdManagerErr, 'There is no current browser id.'
name = self.getBrowserIdName()
if '?' in url:
return '%s&%s=%s' % (url, name, bid)
return '%s&%s=%s' % (url, name, bid)
else:
return '%s?%s=%s' % (url, name, bid)
......
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