Commit a7875d47 authored by Jérome Perrin's avatar Jérome Perrin Committed by Aurel

patches/CookieCrumbler: apply upstream changes

zopefoundation/Products.CMFCore commit 882a697 (- correct check for
request compatibility for CookieCrumbler, 2017-05-12)
parent 8d9019a5
......@@ -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