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:
Sarjuuk
2016-01-13 20:47:01 +01:00
parent ff3babacb7
commit 99eb8f426b
6 changed files with 8 additions and 8 deletions

View File

@@ -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;