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.

Author paulie4
Recipients paulie4
Date 2021-04-16.18:32:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618597979.01.0.855585409209.issue42256@roundup.psfhosted.org>
In-reply-to
Content
Here's a simple example. This is correctly parsed via a `SimpleCookie().load()` call:
'key1=val1, key2=val2'

but this fails to parse:
'key1=val1; expires=Wed, 21 Oct 2015 07:28:00 GMT, key2=val2'

My suggested fix:
str = re.sub(r'(=\w{3},\s[\w\d\s-]{9,11}\s[\d:]{8}\sGMT),', r'\1;', str)

will convert the comma separator to a semicolon, so this will correctly parse:
'key1=val1; expires=Wed, 21 Oct 2015 07:28:00 GMT; key2=val2'
History
Date User Action Args
2021-04-16 18:32:59paulie4setrecipients: + paulie4
2021-04-16 18:32:59paulie4setmessageid: <1618597979.01.0.855585409209.issue42256@roundup.psfhosted.org>
2021-04-16 18:32:59paulie4linkissue42256 messages
2021-04-16 18:32:58paulie4create