[Zope] minor bug CoreSessions - patch
Frank Tegtmeyer
fte@lightwerk.com
05 Nov 2001 19:09:51 +0100
The encodeUrl method in CoreSessionTracking 0.9 generates URLs that
are illegal for use in HTML (use of & instead of &).
Here is the fix:
--- SessionIdManager.py.old Mon Nov 5 19:04:10 2001
+++ SessionIdManager.py Mon Nov 5 19:03:08 2001
@@ -304,7 +304,7 @@
raise SessionIdManagerErr, 'There is no current session token.'
key = self.getTokenKey()
if '?' in url:
- return '%s&%s=%s' % (url, key, token)
+ return '%s&%s=%s' % (url, key, token)
else:
return '%s?%s=%s' % (url, key, token)
Regards, Frank
--
CTO Lightwerk GmbH Email: fte@Lightwerk.com
Phone: +49 2434 800781 Fax: +49 2434 800794
An der Kull 11 * 41844 Wegberg * Germany