From 5de140b0e4dfbf0b4ed92196fbff2bdaddae5abb Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 2 Feb 2019 12:19:41 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20non=20autoris=C3=A9e=20d'une=20ga?= =?UTF-8?q?lerie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index c75acb46..4c423af8 100755 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -102,11 +102,11 @@ class gallery extends common { ]); } // Jeton incorrect - elseif ($_GET['csrf'] !== $_SESSION['csrf']) { + if ($this->getUrl(3) !== $_SESSION['csrf']) { // Valeurs en sortie $this->addOutput([ - 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', - 'notification' => 'Suppression non autorisée' + 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', + 'notification' => 'Suppression non autorisée' ]); } // Suppression