mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
DiskResourceProvider: do not trim backslashes from path when we're not on Windows
This commit is contained in:
@ -43,7 +43,7 @@ class DiskResourceProvider implements ResourceProvider{
|
||||
private $file;
|
||||
|
||||
public function __construct(string $path){
|
||||
$this->file = rtrim($path, "/\\") . "/";
|
||||
$this->file = rtrim(str_replace(DIRECTORY_SEPARATOR, "/", $path), "/") . "/";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user