This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Invalid expires date in cookiejar
Type: behavior Stage:
Components: None Versions: Python 2.6
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, tzulberti
Priority: normal Keywords:

Created on 2010-05-26 18:01 by tzulberti, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg106557 - (view) Author: Tomas Zulberti (tzulberti) Date: 2010-05-26 18:01
This happens when creating a SimpleCookie from an string. The value in the cookie is: "expires=Fri, 31-Dec-2010 23:59:59 GMT"

But in the cookiejar, the value if only "Fri,". 

As far as I know, the error is in the regular expresion _LegalCharsPatt, that doesn't allows whitespaces. The format of the expires date was taken from the wikipedia:
msg112295 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-01 09:06
Thanks, fixed in r83398.
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53072
2010-08-01 09:06:50georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112295

resolution: fixed
2010-05-26 18:01:57tzulberticreate