don't show other users file if the filesystem is not index already

This commit is contained in:
Robin Appelman 2012-06-20 11:35:45 +02:00
parent 311c2bc0d3
commit c4d1363419
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,9 @@ class OC_FileCache{
}
$path=$root.$path;
$parent=self::getFileId($path);
if($path==-1){
return array();
}
$query=OC_DB::prepare('SELECT name,ctime,mtime,mimetype,size,encrypted,versioned,writable FROM *PREFIX*fscache WHERE parent=? AND (mimetype LIKE ? OR mimetype = ?)');
$result=$query->execute(array($parent, $mimetype_filter.'%', 'httpd/unix-directory'))->fetchAll();
if(is_array($result)){