Utils::cleanPath(): drop the square braces

this looks ugly, as well as breaking plugin crash detection (which tbh is too fragile, but it is what it is ...)
This commit is contained in:
Dylan K. Taylor 2020-12-09 20:26:08 +00:00
parent 104e90b794
commit 68887105b2

View File

@ -613,7 +613,7 @@ class Utils{
foreach($cleanPaths as $cleanPath => $replacement){
$cleanPath = rtrim(str_replace([DIRECTORY_SEPARATOR, "phar://"], ["/", ""], $cleanPath), "/");
if(strpos($result, $cleanPath) === 0){
$result = ltrim(str_replace($cleanPath, "[$replacement]", $result), "/");
$result = ltrim(str_replace($cleanPath, $replacement, $result), "/");
}
}
return $result;