csrf translate

This commit is contained in:
Fred Tempez 2023-06-20 20:21:45 +02:00
parent f262b661e9
commit 54b858056f
1 changed files with 2 additions and 5 deletions

View File

@ -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([