From c4d1363419eacf4ae805a65e43f43aef2a06be61 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 20 Jun 2012 11:35:45 +0200 Subject: [PATCH] don't show other users file if the filesystem is not index already --- lib/filecache.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/filecache.php b/lib/filecache.php index cef1ea0472..f93430fc9b 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -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)){