Skip to content

Commit 3cd416b

Browse files
committed
fix OC_Filesystem::isValidPath when using \ instead of / in paths
1 parent 3139636 commit 3cd416b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/filesystem.php

+1
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ static public function getLocalPath($path) {
396396
* @return bool
397397
*/
398398
static public function isValidPath($path) {
399+
$path = self::normalizePath($path);
399400
if(!$path || $path[0]!=='/') {
400401
$path='/'.$path;
401402
}

0 commit comments

Comments
 (0)