From 271706ec5f828184a7413c03441e342133e6a48e Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 20 Jun 2023 17:58:25 +0200 Subject: [PATCH] checkcsrf --- core/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 7be3777f..14d0eb0f 100644 --- a/core/core.php +++ b/core/core.php @@ -473,7 +473,7 @@ class common */ public function checkCSRF() { - return ((empty($_POST['csrf']) or hash_equals($_SESSION['csrf'], $_POST['csrf']) === false) === false); + return ((empty($_POST['csrf']) or hash_equals( $_POST['csrf'], $_SESSION['csrf']) === false) === false); } /**