Don't send crashdumps if git hash is invalid

This commit is contained in:
Dylan K. Taylor 2017-07-10 08:50:11 +01:00
parent c6a6571c07
commit 8a28dfa64d

View File

@ -2175,7 +2175,7 @@ class Server{
$report = false;
}
if(strrpos(\pocketmine\GIT_COMMIT, "-dirty") !== false){
if(strrpos(\pocketmine\GIT_COMMIT, "-dirty") !== false or \pocketmine\GIT_COMMIT === str_repeat("00", 20)){
$this->logger->debug("Not sending crashdump due to locally modified");
$report = false; //Don't send crashdumps for locally modified builds
}