diff --git a/src/modules/Api/Controller/Client.php b/src/modules/Api/Controller/Client.php index e7d726d0c..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(strpos($_SERVER['REQUEST_URI'], "/api/client/cart/checkout", -25) !== false){ + if(strpos($_SERVER['REQUEST_URI'], "/api/client/cart/checkout") !== false){ return true; }