[issue22931] cookies with square brackets in value

Demian Brecht report at bugs.python.org
Tue Dec 2 03:23:48 CET 2014


Demian Brecht added the comment:

Attached patch to fix the issue as reported.

Something interesting that came out of this though is that due to the regex expression, if there's an invalid character in one of the cookie-octets, the rest of the cookie is ignored. I would assume that it should either a) ignore the entire cookie string or b) ignore the invalid cookie pair and accept valid pairs following. I've been unable to find that defined in any of the RFCs though.

----------
keywords: +patch
Added file: http://bugs.python.org/file37340/issue22931.patch

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


More information about the Python-bugs-list mailing list