Skip to content
Snippets Groups Projects
Commit cf732c4d authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Do not leak mounttype of a public share

parent 7959605e
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment