summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-04 07:27:56 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-07-04 07:27:56 +0200
commitcf732c4d274a09597b813582fc2878777da3c36d (patch)
tree5b8c4ceaececd4405a61cb437368401fe718bcc0 /apps/files_sharing/ajax
parent7959605e4e389ee26705094656f636f23b9cfb8d (diff)
downloadnextcloud-server-cf732c4d274a09597b813582fc2878777da3c36d.tar.gz
nextcloud-server-cf732c4d274a09597b813582fc2878777da3c36d.zip
Do not leak mounttype of a public share
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/list.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/list.php b/apps/files_sharing/ajax/list.php
index d09b61fd4ae..9185e508e67 100644
--- a/apps/files_sharing/ajax/list.php
+++ b/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;
}