]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix OC_Filesystem::isValidPath when using \ instead of / in paths
authorRobin Appelman <icewind@owncloud.com>
Fri, 2 Nov 2012 18:56:34 +0000 (19:56 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 2 Nov 2012 18:56:34 +0000 (19:56 +0100)
lib/filesystem.php

index 3b6772c984903186e1658a0cd4fd7dc968481adf..79649a69fd770a1498956c8582eb3bb60c1fd10c 100644 (file)
@@ -396,6 +396,7 @@ class OC_Filesystem{
         * @return bool
         */
        static public function isValidPath($path) {
+               $path = self::normalizePath($path);
                if(!$path || $path[0]!=='/') {
                        $path='/'.$path;
                }