]> source.dussan.org Git - nextcloud-server.git/commitdiff
normalize path
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 24 Oct 2012 15:23:36 +0000 (17:23 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 24 Oct 2012 15:39:39 +0000 (17:39 +0200)
lib/filecache.php

index 776b60abcac5c7c059c2979887aa4ba4692d817a..f768ea8cec8db51f429f4cbd3f0f7dc70c72f04a 100644 (file)
@@ -65,7 +65,7 @@ class OC_FileCache{
                if($root===false) {
                        $root=OC_Filesystem::getRoot();
                }
-               $fullpath=$root.$path;
+               $fullpath=OC_Filesystem::normalizePath($root.'/'.$path);
                $parent=self::getParentId($fullpath);
                $id=self::getId($fullpath, '');
                if(isset(OC_FileCache_Cached::$savedData[$fullpath])) {