CrashDump: fixed broken argv reporting

This commit is contained in:
Dylan K. Taylor 2018-02-22 22:05:35 +00:00
parent 37e8c8d324
commit 3de5e132a2

View File

@ -115,10 +115,10 @@ class CrashDump{
} }
private function extraData(){ private function extraData(){
global $arguments; global $argv;
if($this->server->getProperty("auto-report.send-settings", true) !== false){ if($this->server->getProperty("auto-report.send-settings", true) !== false){
$this->data["parameters"] = (array) $arguments; $this->data["parameters"] = (array) $argv;
$this->data["server.properties"] = @file_get_contents($this->server->getDataPath() . "server.properties"); $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["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"); $this->data["pocketmine.yml"] = @file_get_contents($this->server->getDataPath() . "pocketmine.yml");