mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler/Tooltips
* do not transform page parameters to lowercase. The tooltip Javascript expects the server response in the same case it got sent. * transform to lowercase just for lookups * fixes #394
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user