summaryrefslogtreecommitdiffstats
path: root/lib/filecache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-06-20 11:34:17 +0200
committerRobin Appelman <icewind@owncloud.com>2012-06-20 11:34:17 +0200
commit13a9ef36fb7bf7706af545cbe227296fa005403c (patch)
treee7bfe0437aaa3916b9f9c480e75378adda160272 /lib/filecache
parentf54ef5a464e3530da36f2ebe7f88052cac0c6ad0 (diff)
downloadnextcloud-server-13a9ef36fb7bf7706af545cbe227296fa005403c.tar.gz
nextcloud-server-13a9ef36fb7bf7706af545cbe227296fa005403c.zip
don't show other users file if the filesystem is not index already
Diffstat (limited to 'lib/filecache')
-rw-r--r--lib/filecache/cached.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/filecache/cached.php b/lib/filecache/cached.php
index a22adad4528..17a792a23d4 100644
--- a/lib/filecache/cached.php
+++ b/lib/filecache/cached.php
@@ -55,6 +55,9 @@ class OC_FileCache_Cached{
$root=OC_Filesystem::getRoot();
}
$parent=OC_FileCache::getId($path,$root);
+ if($parent==-1){
+ return array();
+ }
$query=OC_DB::prepare('SELECT path,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)){