diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-31 17:29:46 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-08-05 20:36:45 +0200 |
commit | 712965daa111eacbd9bd8af893a1828369f3ecc4 (patch) | |
tree | 2cbcfece3432f726f7ebbf434eb24a25bca75629 | |
parent | 9ef2e142c4614596f95772d9145b158ecab68e58 (diff) | |
download | nextcloud-server-712965daa111eacbd9bd8af893a1828369f3ecc4.tar.gz nextcloud-server-712965daa111eacbd9bd8af893a1828369f3ecc4.zip |
fix(files_sharing): filter out invalid shareWith in sharee API
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareesAPIController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php index ec4192e94c1..13a420728ef 100644 --- a/apps/files_sharing/lib/Controller/ShareesAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php @@ -257,7 +257,7 @@ class ShareesAPIController extends OCSController { $sharees = $this->getAllShareesByType($user, $shareType); $shareTypeResults = []; foreach ($sharees as [$sharee, $displayname]) { - if (!isset($this->searchResultTypeMap[$shareType])) { + if (!isset($this->searchResultTypeMap[$shareType]) || trim($sharee) === '') { continue; } |