]> source.dussan.org Git - nextcloud-server.git/commitdiff
nortmalize path before adding it to the fscache to avoid multiple fscache entries...
authorBjörn Schießle <schiessle@owncloud.com>
Fri, 12 Oct 2012 08:26:49 +0000 (10:26 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Fri, 12 Oct 2012 08:26:49 +0000 (10:26 +0200)
lib/filecache.php

index 8fcb6fd9404db825bd38f83aa2945b7c6262aa0d..e84888116c01aa141a3e1c85278824b0f1b3afd4 100644 (file)
@@ -62,6 +62,9 @@ class OC_FileCache{
         * $data is an assiciative array in the same format as returned by get
         */
        public static function put($path,$data,$root=false) {
+               if ($path != '') {
+                       $path = OC_Filesystem::normalizePath($path);
+               }
                if($root===false) {
                        $root=OC_Filesystem::getRoot();
                }