Browse Source

Do not leak mounttype of a public share

remotes/origin/handlebars-approach
Roeland Jago Douma 11 years ago
parent
commit
cf732c4d27
  1. 3
      apps/files_sharing/ajax/list.php

3
apps/files_sharing/ajax/list.php

@ -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…
Cancel
Save