Do not leak mounttype of a public share

This commit is contained in:
Roeland Jago Douma 2015-07-04 07:27:56 +02:00
parent 7959605e4e
commit cf732c4d27
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;
}