Removed character range check for UTF-8 full support

This commit is contained in:
Shoghi Cervantes 2013-08-29 18:35:57 +02:00
parent f609c40bdc
commit fe681cb786

View File

@ -1631,7 +1631,7 @@ class Player{
}
$this->craftingItems = array();
$this->toCraft = array();
if(trim($data["message"]) != "" and strlen($data["message"]) <= 255 and preg_match('#[^\\x20-\\xff]#', $data["message"]) == 0){
if(trim($data["message"]) != "" and strlen($data["message"]) <= 255){
$message = $data["message"];
if($message{0} === "/"){ //Command
$this->server->api->console->run(substr($message, 1), $this);