From: Björn Schießle Date: Fri, 12 Oct 2012 08:26:49 +0000 (+0200) Subject: nortmalize path before adding it to the fscache to avoid multiple fscache entries... X-Git-Tag: v5.0.0alpha1~800 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d7f43945e793bb9ec09ab7c40cc566e0221cf995;p=nextcloud-server.git nortmalize path before adding it to the fscache to avoid multiple fscache entries for the same file --- diff --git a/lib/filecache.php b/lib/filecache.php index 8fcb6fd9404..e84888116c0 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -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(); }