[New-bugs-announce] [issue8826] Invalid expires date in cookiejar

Tomas Zulberti report at bugs.python.org
Wed May 26 20:01:58 CEST 2010


New submission from Tomas Zulberti <tzulberti at gmail.com>:

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

----------
components: None
messages: 106557
nosy: tzulberti
priority: normal
severity: normal
status: open
title: Invalid expires date in cookiejar
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8826>
_______________________________________


More information about the New-bugs-announce mailing list