From 54b858056fbfdfb311e7de65ed9b5253e39377eb Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 20 Jun 2023 20:21:45 +0200 Subject: [PATCH] csrf translate --- core/module/translate/translate.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index 8cc5e81c..8225b10e 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -69,7 +69,6 @@ class translate extends common $lang = $this->getUrl(2); // Jeton incorrect ou URl avec le code langue incorrecte if ( - $this->checkCSRF() && array_key_exists($lang, self::$languages) === false ) { // Valeurs en sortie @@ -541,8 +540,7 @@ class translate extends common $target = $this->getUrl(2); $lang = $this->getUrl(3); if ( - $this->checkCSRF() - || array_key_exists($lang, self::$languages) === false + array_key_exists($lang, self::$languages) === false ) { // Valeurs en sortie $this->addOutput([ @@ -596,8 +594,7 @@ class translate extends common // Jeton incorrect ou URl avec le code langue incorrecte $lang = $this->getUrl(2); if ( - $this->checkCSRF() - || array_key_exists($lang, self::$languages) === false + array_key_exists($lang, self::$languages) === false ) { // Valeurs en sortie $this->addOutput([