Skip to content
Snippets Groups Projects
Commit efcd89cb authored by Vincent Petry's avatar Vincent Petry
Browse files

Do not disclose share owner in public file list

parent 86689ef4
Branches
No related tags found
No related merge requests found
...@@ -64,7 +64,10 @@ $files = \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection); ...@@ -64,7 +64,10 @@ $files = \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection);
$formattedFiles = array(); $formattedFiles = array();
foreach ($files as $file) { foreach ($files as $file) {
$entry = \OCA\Files\Helper::formatFileInfo($file); $entry = \OCA\Files\Helper::formatFileInfo($file);
unset($entry['directory']); // for now // for now
unset($entry['directory']);
// do not disclose share owner
unset($entry['shareOwner']);
$entry['permissions'] = \OCP\Constants::PERMISSION_READ; $entry['permissions'] = \OCP\Constants::PERMISSION_READ;
$formattedFiles[] = $entry; $formattedFiles[] = $entry;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment