]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't show other users file if the filesystem is not index already
authorRobin Appelman <icewind@owncloud.com>
Wed, 20 Jun 2012 09:35:45 +0000 (11:35 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 20 Jun 2012 09:35:45 +0000 (11:35 +0200)
lib/filecache.php

index cef1ea04729b49fe3ad6a37514b27850aced15f9..f93430fc9b0a01b74a77f7e3fef2b4b2281b23f0 100644 (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)){