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:
commit
2b86ba43e3
|
@ -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