diff --git a/lib/filecache.php b/lib/filecache.php
index 776b60abcac5c7c059c2979887aa4ba4692d817a..f768ea8cec8db51f429f4cbd3f0f7dc70c72f04a 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -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])) {