checkcsrf

This commit is contained in:
Fred Tempez 2023-06-20 17:58:58 +02:00
parent 886ed303be
commit 30227c9362

View File

@ -473,7 +473,7 @@ class common
*/ */
public function checkCSRF() 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);
} }
/** /**