diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-01-26 17:10:58 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-01-26 19:55:48 +0100 |
commit | efcd89cb18ea9e553d1d7a52f35cd61b499cf184 (patch) | |
tree | 5aa13a4ccd16985016fe8c3abe8298abb1a84ced /apps | |
parent | 86689ef40033f117154f9f6e65359cdad39530e9 (diff) | |
download | nextcloud-server-efcd89cb18ea9e553d1d7a52f35cd61b499cf184.tar.gz nextcloud-server-efcd89cb18ea9e553d1d7a52f35cd61b499cf184.zip |
Do not disclose share owner in public file list
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/ajax/list.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/list.php b/apps/files_sharing/ajax/list.php index 073c86365be..657c6f75da5 100644 --- a/apps/files_sharing/ajax/list.php +++ b/apps/files_sharing/ajax/list.php @@ -64,7 +64,10 @@ $files = \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection); $formattedFiles = array(); foreach ($files as $file) { $entry = \OCA\Files\Helper::formatFileInfo($file); - unset($entry['directory']); // for now + // for now + unset($entry['directory']); + // do not disclose share owner + unset($entry['shareOwner']); $entry['permissions'] = \OCP\Constants::PERMISSION_READ; $formattedFiles[] = $entry; } |