diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-20 11:35:45 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-20 11:35:45 +0200 |
commit | c4d1363419eacf4ae805a65e43f43aef2a06be61 (patch) | |
tree | 497c62e893cca641cada5026ee1ea4ade4b53c34 /lib/filecache.php | |
parent | 311c2bc0d311a70cff9cc73673bcd5f310e9f0a6 (diff) | |
download | nextcloud-server-c4d1363419eacf4ae805a65e43f43aef2a06be61.tar.gz nextcloud-server-c4d1363419eacf4ae805a65e43f43aef2a06be61.zip |
don't show other users file if the filesystem is not index already
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index cef1ea04729..f93430fc9b0 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)){ |