nortmalize path before adding it to the fscache to avoid multiple fscache entries for the same file
This commit is contained in:
parent
b761143047
commit
d7f43945e7
|
@ -62,6 +62,9 @@ class OC_FileCache{
|
||||||
* $data is an assiciative array in the same format as returned by get
|
* $data is an assiciative array in the same format as returned by get
|
||||||
*/
|
*/
|
||||||
public static function put($path,$data,$root=false) {
|
public static function put($path,$data,$root=false) {
|
||||||
|
if ($path != '') {
|
||||||
|
$path = OC_Filesystem::normalizePath($path);
|
||||||
|
}
|
||||||
if($root===false) {
|
if($root===false) {
|
||||||
$root=OC_Filesystem::getRoot();
|
$root=OC_Filesystem::getRoot();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue