Skip to content
Snippets Groups Projects
Commit b61f6438 authored by Robin Appelman's avatar Robin Appelman
Browse files

return user specific paths from oc_filecache::getpath

parent 12818093
Branches
No related tags found
Loading
......@@ -335,7 +335,12 @@ class OC_FileCache{
$query=OC_DB::prepare('SELECT path FROM *PREFIX*fscache WHERE id=? AND user=?');
$result=$query->execute(array($id,$user));
$row=$result->fetchRow();
return $row['path'];
$path=$row['path'];
$root='/'.$user.'/files';
if(substr($path,0,strlen($root))!=$root){
return false;
}
return substr($path,strlen($root));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment