Skip to content
Snippets Groups Projects
Commit d7f43945 authored by Björn Schießle's avatar Björn Schießle
Browse files

nortmalize path before adding it to the fscache to avoid multiple fscache entries for the same file

parent b7611430
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment