diff options
author | ianb <devnull@localhost> | 2009-01-08 21:20:05 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2009-01-08 21:20:05 +0000 |
commit | b185b6540e7f9b2b69aebe3e186b9bb14cb6b9e6 (patch) | |
tree | 44099cf32499cd08307f2b338f9b8a9ebd6f3ce6 /paste/auth | |
parent | 166fc5868b3f33798a8adabe12f48739b0fff508 (diff) | |
download | paste-b185b6540e7f9b2b69aebe3e186b9bb14cb6b9e6.tar.gz |
don't need to strip the trailing newline anymore
Diffstat (limited to 'paste/auth')
-rw-r--r-- | paste/auth/cookie.py | 2 |
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: |