From 8b5a83e4bf799d7eb046046ea9299aef7b66e6b2 Mon Sep 17 00:00:00 2001 From: camer0n Date: Sun, 27 Apr 2025 07:14:37 -0700 Subject: [PATCH] Issue #5443 Remove warning about invalid language. --- e107_admin/auth.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/e107_admin/auth.php b/e107_admin/auth.php index b02602035..b5a6132e8 100644 --- a/e107_admin/auth.php +++ b/e107_admin/auth.php @@ -51,12 +51,14 @@ if(USER && !getperms('0') && vartrue($pref['multilanguage']) && !getperms(e_LANG $lng = e107::getLanguage(); $tmp = explode(".",ADMINPERMS); + foreach($tmp as $ln) { - if(strlen($ln) < 3) // not a language perm. - { - continue; - } + + if(strlen($ln) < 3 || preg_match('/\d/', $ln)) // Skip if less than 2 chars or contains a number + { + continue; + } if($lng->isValid($ln)) {