Skip to content

Commit 712965d

Browse files
committed
fix(files_sharing): filter out invalid shareWith in sharee API
Signed-off-by: skjnldsv <[email protected]>
1 parent 9ef2e14 commit 712965d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/Controller/ShareesAPIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private function getAllSharees(string $user, array $shareTypes): ISearchResult {
257257
$sharees = $this->getAllShareesByType($user, $shareType);
258258
$shareTypeResults = [];
259259
foreach ($sharees as [$sharee, $displayname]) {
260-
if (!isset($this->searchResultTypeMap[$shareType])) {
260+
if (!isset($this->searchResultTypeMap[$shareType]) || trim($sharee) === '') {
261261
continue;
262262
}
263263

0 commit comments

Comments
 (0)