summaryrefslogtreecommitdiff
path: root/paste/auth
diff options
context:
space:
mode:
authorianb <devnull@localhost>2009-01-08 21:20:05 +0000
committerianb <devnull@localhost>2009-01-08 21:20:05 +0000
commitb185b6540e7f9b2b69aebe3e186b9bb14cb6b9e6 (patch)
tree44099cf32499cd08307f2b338f9b8a9ebd6f3ce6 /paste/auth
parent166fc5868b3f33798a8adabe12f48739b0fff508 (diff)
downloadpaste-b185b6540e7f9b2b69aebe3e186b9bb14cb6b9e6.tar.gz
don't need to strip the trailing newline anymore
Diffstat (limited to 'paste/auth')
-rw-r--r--paste/auth/cookie.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/auth/cookie.py b/paste/auth/cookie.py
index d68224e..2601a90 100644
--- a/paste/auth/cookie.py
+++ b/paste/auth/cookie.py
@@ -140,7 +140,7 @@ class AuthCookieSigner(object):
cookie = base64.encodestring(
hmac.new(self.secret, content, sha1).digest() +
make_time(time.time() + 60*self.timeout) +
- content)[:-1]
+ content)
cookie = cookie.replace("/", "_").replace("=", "~")
cookie = cookie.replace('\n', '').replace('\r', '')
if len(cookie) > self.maxlen: