Do not leak mounttype of a public share
This commit is contained in:
parent
7959605e4e
commit
cf732c4d27
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue