Patch %0 client translation exploit

This commit is contained in:
dktapps 2016-08-10 16:55:10 +01:00 committed by Dylan K. Taylor
parent 9808f874c8
commit 378c3d7994

View File

@ -92,7 +92,7 @@ class BaseLang{
$baseText = str_replace("{%$i}", $this->parseTranslation((string) $p), $baseText, $onlyPrefix);
}
return $baseText;
return str_replace("%0", "", $baseText); //fixes a client bug where %0 in translation will cause freeze
}
public function translate(TextContainer $c){