diff --git a/src/pocketmine/CrashDump.php b/src/pocketmine/CrashDump.php index efb929a03..d666f78b0 100644 --- a/src/pocketmine/CrashDump.php +++ b/src/pocketmine/CrashDump.php @@ -52,6 +52,7 @@ use function ob_start; use function php_uname; use function phpinfo; use function phpversion; +use function preg_replace; use function str_split; use function strpos; use function strtoupper; @@ -172,6 +173,7 @@ class CrashDump{ if($this->server->getProperty("auto-report.send-settings", true) !== false){ $this->data["parameters"] = (array) $argv; $this->data["server.properties"] = @file_get_contents($this->server->getDataPath() . "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"); }else{ $this->data["pocketmine.yml"] = "";