From f6126b5b6cd5cdc6e2b69e65f3ee07a8c3eb1827 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 27 Jan 2019 19:35:15 +0100 Subject: [PATCH] =?UTF-8?q?Erreur=20=C3=A9dtion=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/user/user.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index b16cb252..38416ee4 100755 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -152,14 +152,12 @@ class user extends common { 'access' => false ]); } - if ($this->getUrl(3) !== $_SESSION['csrf']) { - if ( $this->getUrl(4) !== $_SESSION['csrf']) { + if ($this->getUrl(4) !== $_SESSION['csrf']) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . 'user', 'notification' => 'Action non autorisée' ]); - } } // Accès autorisé else {