CrashDump: more robust core crash detection

This commit is contained in:
Dylan K. Taylor
2020-12-08 23:27:03 +00:00
parent 994062f6dc
commit 104e90b794
2 changed files with 8 additions and 5 deletions

View File

@ -310,8 +310,8 @@ class CrashDump{
}
private function determinePluginFromFile(string $filePath, bool $crashFrame) : bool{
$frameCleanPath = Utils::cleanPath($filePath); //this will be empty in phar stub
if(strpos($frameCleanPath, "plugins") === 0){
$frameCleanPath = Utils::cleanPath($filePath);
if(strpos($frameCleanPath, Utils::CLEAN_PATH_SRC_PREFIX) !== 0){
$this->addLine();
if($crashFrame){
$this->addLine("THIS CRASH WAS CAUSED BY A PLUGIN");