Commit bdf08ad6 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

patches/CookieCrumbler: apply upstream changes

zopefoundation/Products.CMFCore commit 882a697 (- correct check for
request compatibility for CookieCrumbler, 2017-05-12)
parent cc051fc9
......@@ -117,7 +117,7 @@ def modifyRequest(self, req, resp):
cookie login is disabled for this request, raises
CookieCrumblerDisabled.
"""
enabled = (req.__class__ is HTTPRequest
enabled = (isinstance(req, HTTPRequest)
and req['REQUEST_METHOD'] in ('HEAD', 'GET', 'PUT', 'POST')
and 'WEBDAV_SOURCE_PORT' not in req.environ)
if enabled:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment