Skip to content

Commit

Permalink
fix(collaboration): collaboration MailPlugin: Protect access to a pot…
Browse files Browse the repository at this point in the history
…entially missing array component by ??.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
  • Loading branch information
rotdrop authored and backportbot[bot] committed Feb 29, 2024
1 parent c980dae commit 45c359e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Collaboration/Collaborators/MailPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult) {
}
if ($exactEmailMatch && $this->shareeEnumerationFullMatch) {
try {
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
} catch (\InvalidArgumentException $e) {
continue;
}
Expand All @@ -188,7 +188,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult) {

if ($this->shareeEnumeration) {
try {
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]);
$cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? '');
} catch (\InvalidArgumentException $e) {
continue;
}
Expand Down

0 comments on commit 45c359e

Please sign in to comment.