Commit c0c9898a authored by Jérome Perrin's avatar Jérome Perrin

patches/CookieCrumbler: apply upstream changes

zopefoundation/Products.CMFCore commit 882a697 (- correct check for
request compatibility for CookieCrumbler, 2017-05-12)
parent 5485743b
Pipeline #23075 failed with stage
in 0 seconds
......@@ -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