Skip to content

Commit 6540c0f

Browse files
committed
fix OC_Filesystem::isValidPath when using \ instead of / in paths
1 parent c73eb29 commit 6540c0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/filesystem.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ static public function getLocalPath($path) {
361361
* @return bool
362362
*/
363363
static public function isValidPath($path){
364+
$path = str_replace('\\', '/', $path);
364365
if(!$path || $path[0]!=='/'){
365366
$path='/'.$path;
366367
}

0 commit comments

Comments
 (0)