diff --git a/includes/kernel.php b/includes/kernel.php index 9880f63f..4bedf59a 100644 --- a/includes/kernel.php +++ b/includes/kernel.php @@ -237,9 +237,9 @@ if (!CLI) Lang::load(User::$localeId); // parse page-parameters .. sanitize before use! - $str = explode('&', mb_strtolower($_SERVER['QUERY_STRING'] ?? ''), 2)[0]; + $str = explode('&', $_SERVER['QUERY_STRING'] ?? '', 2)[0]; $_ = explode('=', $str, 2); - $pageCall = $_[0]; + $pageCall = mb_strtolower($_[0]); $pageParam = $_[1] ?? ''; } else if (DB::isConnected(DB_AOWOW)) diff --git a/pages/genericPage.class.php b/pages/genericPage.class.php index b308fc2e..a2ab88ac 100644 --- a/pages/genericPage.class.php +++ b/pages/genericPage.class.php @@ -113,7 +113,7 @@ trait TrProfiler // cat[0] is always region // cat[1] is realm or bGroup (must be realm if cat[2] is set) // cat[2] is arena-team, guild or player - $cat = explode('.', $pageParam, 3); + $cat = explode('.', mb_strtolower($pageParam), 3); $cat = array_map('urldecode', $cat);