Remove keycodes from console input

This commit is contained in:
Shoghi Cervantes 2013-11-23 10:46:24 +01:00
parent c973abc36f
commit 14a40ac11e
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ class ConsoleAPI{
return;
}
if($this->loop->line !== false){
$line = trim($this->loop->line);
$line = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", trim($this->loop->line));
$this->loop->line = false;
$output = $this->run($line, "console");
if($output != ""){

View File

@ -60,7 +60,7 @@ ini_set("memory_limit", "128M"); //Default
define("LOG", true);
define("START_TIME", microtime(true));
define("MAJOR_VERSION", "Alpha_1.3.10dev");
define("CURRENT_MINECRAFT_VERSION", "0.7.6 alpha");
define("CURRENT_MINECRAFT_VERSION", "v0.7.6 alpha");
define("CURRENT_API_VERSION", 10);
define("CURRENT_PHP_VERSION", "5.5");
$gitsha1 = false;