Merge pull request #14341 from rullzer/public_share_do_not_leak_mounttype

No more leaking of mounttype via metadata or icon in public shares.
This commit is contained in:
Morris Jobke 2015-07-09 09:41:27 +02:00
commit 2b86ba43e3
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ foreach ($files as $file) {
unset($entry['directory']);
// do not disclose share owner
unset($entry['shareOwner']);
// do not disclose if something is a remote shares
unset($entry['mountType']);
unset($entry['icon']);
$entry['permissions'] = \OCP\Constants::PERMISSION_READ;
$formattedFiles[] = $entry;
}