On 2nd thought, let's just do this

This commit is contained in:
Belle Aerni committed 2022-12-08 05:17:05 -08:00
1 parent a1beff64ea
commit 7b2cfc25bf
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}