From 906589a8dd52e1f46b7613f81fb0cb7f36821103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Parafi=C5=84ski?= Date: Thu, 28 Sep 2023 15:26:04 +0200 Subject: [PATCH] ibx-5854: Allowed `ibexa-` prefixed cookies (#64) --- resources/platformsh/common/4.5.x-dev/.platform/varnish.vcl | 1 + resources/platformsh/common/4.5/.platform/varnish.vcl | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/platformsh/common/4.5.x-dev/.platform/varnish.vcl b/resources/platformsh/common/4.5.x-dev/.platform/varnish.vcl index 920fac8..36a571d 100644 --- a/resources/platformsh/common/4.5.x-dev/.platform/varnish.vcl +++ b/resources/platformsh/common/4.5.x-dev/.platform/varnish.vcl @@ -61,6 +61,7 @@ sub vcl_recv { set req.http.cookie = ";" + req.http.cookie; set req.http.cookie = regsuball(req.http.cookie, "; +", ";"); set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1="); + set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1="); set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", ""); set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", ""); diff --git a/resources/platformsh/common/4.5/.platform/varnish.vcl b/resources/platformsh/common/4.5/.platform/varnish.vcl index 920fac8..36a571d 100644 --- a/resources/platformsh/common/4.5/.platform/varnish.vcl +++ b/resources/platformsh/common/4.5/.platform/varnish.vcl @@ -61,6 +61,7 @@ sub vcl_recv { set req.http.cookie = ";" + req.http.cookie; set req.http.cookie = regsuball(req.http.cookie, "; +", ";"); set req.http.cookie = regsuball(req.http.cookie, ";(eZSESSID[^=]*)=", "; \1="); + set req.http.cookie = regsuball(req.http.cookie, ";(ibexa-[^=]*)=", "; \1="); set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", ""); set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");