classification
Title: Invalid expires date in cookiejar
Type: behavior Stage:
Components: None Versions: Python 2.6
process
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 2010-08-01 09:06 by georg.brandl. 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: http://en.wikipedia.org/wiki/HTTP_cookie#Cookie_attributes
msg112295 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-01 09:06
Thanks, fixed in r83398.
History
Date User Action Args
2010-08-01 09:06:50georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112295

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