From 6e4d8457e6522c4fc456b2864709783994c11b5a Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 13 Jul 2020 16:26:32 +0000 Subject: [PATCH] Updated django patch for SameSite cookie settings. - Legacy-Id: 18161 --- patch/add-django-http-cookie-value-none.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patch/add-django-http-cookie-value-none.patch b/patch/add-django-http-cookie-value-none.patch index 78ad3f1dc..ab75235f2 100644 --- a/patch/add-django-http-cookie-value-none.patch +++ b/patch/add-django-http-cookie-value-none.patch @@ -1,5 +1,5 @@ ---- django/http//response.py.orig 2020-07-08 14:34:42.776562458 +0200 -+++ django/http//response.py 2020-07-08 14:35:56.454687322 +0200 +--- django/http/response.py.orig 2020-07-08 14:34:42.776562458 +0200 ++++ django/http/response.py 2020-07-08 14:35:56.454687322 +0200 @@ -197,8 +197,8 @@ if httponly: self.cookies[key]['httponly'] = True @@ -7,7 +7,7 @@ - if samesite.lower() not in ('lax', 'strict'): - raise ValueError('samesite must be "lax" or "strict".') + if samesite.lower() not in ('lax', 'strict', 'none'): -+ raise ValueError('samesite must be "lax", "strict", or "none".') ++ raise ValueError('samesite must be "lax", "strict", or "none", not "%s".' % samesite) self.cookies[key]['samesite'] = samesite def setdefault(self, key, value):