Revert "Patch %0 client translation exploit"

this bug was (FINALLY) fixed in 1.2.5.15

This reverts commit 378c3d7994b41849ba4d5608b0a9a5482e84cc25.
This commit is contained in:
Dylan K. Taylor 2017-11-01 16:17:17 +00:00
parent dea2942062
commit 372b97ba8f

View File

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