From fe681cb7863e3b9fd6794385ce9cb8f7cb615f75 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 29 Aug 2013 18:35:57 +0200 Subject: [PATCH] Removed character range check for UTF-8 full support --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 174d55c3..85bd7cb5 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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);