summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/private.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Cgi/private.py')
-rw-r--r--Mailman/Cgi/private.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Cgi/private.py b/Mailman/Cgi/private.py
index 4a06a7270..eb1352ded 100644
--- a/Mailman/Cgi/private.py
+++ b/Mailman/Cgi/private.py
@@ -110,7 +110,7 @@ def isAuthenticated(list_name):
if c.has_key(list_name):
# The user has a token like 'c++-sig=AE23446AB...'; verify
# that it's correct.
- token = c[list_name].value
+ token = string.replace(c[list_name].value,"@","\n")
import base64, md5
if base64.decodestring(token) != md5.new(SECRET
+ list_name
@@ -152,7 +152,7 @@ def isAuthenticated(list_name):
import base64, md5
token = md5.new(SECRET + list_name + SECRET).digest()
token = base64.encodestring(token)
- token = string.strip(token)
+ token = string.replace(token, "\n", "@")
c = Cookie.Cookie()
c[list_name] = token
print c # Output the cookie