From a1c37d4be5ce8d6fa95b19465193ea51676a1766 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 2 Nov 2012 19:56:34 +0100 Subject: [PATCH] fix OC_Filesystem::isValidPath when using \ instead of / in paths --- lib/filesystem.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/filesystem.php b/lib/filesystem.php index 3b6772c9849..79649a69fd7 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -396,6 +396,7 @@ class OC_Filesystem{ * @return bool */ static public function isValidPath($path) { + $path = self::normalizePath($path); if(!$path || $path[0]!=='/') { $path='/'.$path; } -- 2.39.5