zopefoundation / zope.publisher

Map requests from HTTP/WebDAV clients, web browsers, XML-RPC and FTP clients onto Python objects
Other
3 stars 12 forks source link

Lenient cookie parsing #2

Closed jamur2 closed 11 years ago

jamur2 commented 11 years ago

Python's standard cookie parsing will drop all cookies if one cookie is invalid. This pull request will salvage as much as possible from the cookie headers (it drops the offending cookie, but retains the rest).

For posterity, the main author of this pull request (back when zope.publisher was in svn) is Alex Chapman, I've just updated it for merging to modern zope.publisher master.

tseaver commented 9 years ago

@freddrake @jamur2 Note that the code as it stands fails tests on both Python 2.7.9 (due to this change by Guido and Python 3.3.3 (similar change, I assume).

tseaver commented 9 years ago

Reported at: https://bugs.launchpad.net/zope.publisher/+bug/1404582