summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-01-22 02:56:16 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-01-22 02:56:16 +0100
commit066ca70890c80a858fb744d0acb457588ed2e7b0 (patch)
treec5f6f13941892689f7d745b719e6577ccf0b3c91 /files
parent15d15104d4abaf0021e8a9b15656ca9568360061 (diff)
downloadnextcloud-server-066ca70890c80a858fb744d0acb457588ed2e7b0.tar.gz
nextcloud-server-066ca70890c80a858fb744d0acb457588ed2e7b0.zip
only show files in the filebrowser that we can actually read.
in the (rare) case that there are unreadable files show an error since it's probably a case of incorrect premissions set by someone.
Diffstat (limited to 'files')
-rw-r--r--files/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/api.php b/files/api.php
index 3cb796d432c..7de2c31fc7f 100644
--- a/files/api.php
+++ b/files/api.php
@@ -54,7 +54,7 @@ if($arguments['action']){
break;
case 'getfiles':
$max_upload=min(return_bytes(ini_get('post_max_size')),return_bytes(ini_get('upload_max_filesize')));
- $files=OC_FILES::getdirectorycontent($arguments['dir']);
+ $files=OC_FILES::getDirectoryContent($arguments['dir']);
$files['__max_upload']=$max_upload;
echo json_encode($files);
break;