diff options
author | ianb <devnull@localhost> | 2009-01-08 21:19:22 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2009-01-08 21:19:22 +0000 |
commit | 166fc5868b3f33798a8adabe12f48739b0fff508 (patch) | |
tree | dedf05aaba8af56677609cd0b44a5312c6ced08c /paste/auth | |
parent | 1b33d09c7f0a5d33db805cc296c1da855b0260a7 (diff) | |
download | paste-166fc5868b3f33798a8adabe12f48739b0fff508.tar.gz |
Fix #257, newlines in paste.auth.cookie cookies
Diffstat (limited to 'paste/auth')
-rw-r--r-- | paste/auth/cookie.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/paste/auth/cookie.py b/paste/auth/cookie.py index 99f37e0..d68224e 100644 --- a/paste/auth/cookie.py +++ b/paste/auth/cookie.py @@ -142,6 +142,7 @@ class AuthCookieSigner(object): make_time(time.time() + 60*self.timeout) + content)[:-1] cookie = cookie.replace("/", "_").replace("=", "~") + cookie = cookie.replace('\n', '').replace('\r', '') if len(cookie) > self.maxlen: raise CookieTooLarge(content, cookie) return cookie |