DiskResourceProvider: do not trim backslashes from path when we're not on Windows

This commit is contained in:
Dylan K. Taylor 2020-05-24 14:26:12 +01:00
parent 2170f81cdd
commit 49bd58a86a

View File

@ -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), "/") . "/";
}
/**