Commit 2b86ba43 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #14341 from rullzer/public_share_do_not_leak_mounttype

No more leaking of mounttype via metadata or icon in public shares.
parents 6d9bb173 cf732c4d
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment