mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Fixes
* fixed typo preventing management of custom weight scales * added forgotten GET-Parameter to sanitization, preventing rating of comments * avoid hardcoding locales * do not show tooltip on BUTTON_WOWHEAD
This commit is contained in:
@@ -42,8 +42,8 @@ class AjaxHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
$h = $this->handler;
|
||||
$out = $this->$h();
|
||||
$h = $this->handler;
|
||||
$out = (string)$this->$h();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -55,7 +55,7 @@ class AjaxHandler
|
||||
|
||||
protected function checkLocale($val)
|
||||
{
|
||||
if (preg_match('/^'.implode('|', [LOCALE_EN, LOCALE_FR, LOCALE_DE, LOCALE_ES, LOCALE_RU]).'$/', $val))
|
||||
if (preg_match('/^'.implode('|', array_keys(array_filter(Util::$localeStrings))).'$/', $val))
|
||||
return intVal($val);
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user