From d7f43945e793bb9ec09ab7c40cc566e0221cf995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Fri, 12 Oct 2012 10:26:49 +0200 Subject: [PATCH] nortmalize path before adding it to the fscache to avoid multiple fscache entries for the same file --- lib/filecache.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/filecache.php b/lib/filecache.php index 8fcb6fd940..e84888116c 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(); }