diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-10-12 10:26:49 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-10-12 10:26:49 +0200 |
commit | d7f43945e793bb9ec09ab7c40cc566e0221cf995 (patch) | |
tree | 7ca1d3df64ebd20c1332f09a5a0f3fd6ed3f3ea2 /lib | |
parent | b7611430471249d4b847cdd53d047f829617a277 (diff) | |
download | nextcloud-server-d7f43945e793bb9ec09ab7c40cc566e0221cf995.tar.gz nextcloud-server-d7f43945e793bb9ec09ab7c40cc566e0221cf995.zip |
nortmalize path before adding it to the fscache to avoid multiple fscache entries for the same file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filecache.php | 3 |
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(); } |