Fixed rcon password being shown

This commit is contained in:
Shoghi Cervantes 2014-07-18 11:58:39 +02:00
parent 2e773a32ff
commit 2448405e3a

View File

@ -104,7 +104,7 @@ class CrashDump{
global $arguments;
$this->data["parameters"] = (array) $arguments;
$this->data["server.properties"] = @file_get_contents($this->server->getDataPath() . "server.properties");
$this->data["server.properties"] = preg_replace("#^rcon\\.password=(.*)$#", "rcon.password=******", $this->data["server.properties"]);
$this->data["server.properties"] = preg_replace("#^rcon\\.password=(.*)$#m", "rcon.password=******", $this->data["server.properties"]);
$this->data["pocketmine.yml"] = @file_get_contents($this->server->getDataPath() . "pocketmine.yml");
$extensions = [];
foreach(get_loaded_extensions() as $ext){