mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Merge branch 'stable'
# Conflicts: # resources/vanilla # src/utils/Utils.php
This commit is contained in:
commit
ff6672ba85
@ -96,7 +96,7 @@ final class Filesystem{
|
|||||||
foreach($cleanPaths as $cleanPath => $replacement){
|
foreach($cleanPaths as $cleanPath => $replacement){
|
||||||
$cleanPath = rtrim(str_replace([DIRECTORY_SEPARATOR, "phar://"], ["/", ""], $cleanPath), "/");
|
$cleanPath = rtrim(str_replace([DIRECTORY_SEPARATOR, "phar://"], ["/", ""], $cleanPath), "/");
|
||||||
if(strpos($result, $cleanPath) === 0){
|
if(strpos($result, $cleanPath) === 0){
|
||||||
$result = ltrim(str_replace($cleanPath, "[$replacement]", $result), "/");
|
$result = ltrim(str_replace($cleanPath, $replacement, $result), "/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user