From 7b2cfc25bfaaff58e475b1acfbb8aac5af4ca2b1 Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Thu, 8 Dec 2022 05:17:05 -0800 Subject: [PATCH] On 2nd thought, let's just do this --- src/modules/Api/Controller/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Api/Controller/Client.php b/src/modules/Api/Controller/Client.php index f6567e34e..810301413 100644 --- a/src/modules/Api/Controller/Client.php +++ b/src/modules/Api/Controller/Client.php @@ -305,7 +305,7 @@ class Client implements InjectionAwareInterface /* Due to the way the cart works, it creates a new session which causes issues with the CSRF token system. * Due to this, we whitelist the checkout URL. */ - if(strlen($_SERVER['REQUEST_URI']) > 25 && strpos($_SERVER['REQUEST_URI'], "/api/client/cart/checkout", -25) !== false){ + if(strpos($_SERVER['REQUEST_URI'], "/api/client/cart/checkout") !== false){ return true; }