mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Removed character range check for UTF-8 full support
This commit is contained in:
parent
f609c40bdc
commit
fe681cb786
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue