summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/filecache.php3
1 files changed, 3 insertions, 0 deletions
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();
}