Skip to content

Commit

Permalink
fix(files_sharing): filter out invalid shareWith in sharee API
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Aug 2, 2024
1 parent b17508a commit 345e610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/Controller/ShareesAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private function getAllSharees(string $user, array $shareTypes): ISearchResult {
$sharees = $this->getAllShareesByType($user, $shareType);
$shareTypeResults = [];
foreach ($sharees as [$sharee, $displayname]) {
if (!isset($this->searchResultTypeMap[$shareType])) {
if (!isset($this->searchResultTypeMap[$shareType]) || trim($sharee) === '') {
continue;
}

Expand Down

0 comments on commit 345e610

Please sign in to comment.