From: Robin Appelman Date: Fri, 2 Nov 2012 18:56:34 +0000 (+0100) Subject: fix OC_Filesystem::isValidPath when using \ instead of / in paths X-Git-Tag: v5.0.0alpha1~521 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1c37d4be5ce8d6fa95b19465193ea51676a1766;p=nextcloud-server.git fix OC_Filesystem::isValidPath when using \ instead of / in paths --- 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; }