diff options
author | Claus-Justus Heine <himself@claus-justus-heine.de> | 2022-02-01 12:47:57 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-02-27 17:50:51 +0100 |
commit | 493333036b92f8478bdd9678e23fc58a5f825bfd (patch) | |
tree | 97c8674b33fdfefd01c41f235dab655c12222dc2 | |
parent | 455a209b9c4f3b95a016ce1c0bcd1bcfa3fc86bf (diff) | |
download | nextcloud-server-493333036b92f8478bdd9678e23fc58a5f825bfd.tar.gz nextcloud-server-493333036b92f8478bdd9678e23fc58a5f825bfd.zip |
fix(collaboration): collaboration MailPlugin: Protect access to a potentially missing array component by ??.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
-rw-r--r-- | lib/private/Collaboration/Collaborators/MailPlugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php index 44f67f5aeba..1529f78f045 100644 --- a/lib/private/Collaboration/Collaborators/MailPlugin.php +++ b/lib/private/Collaboration/Collaborators/MailPlugin.php @@ -149,7 +149,7 @@ class MailPlugin implements ISearchPlugin { } if ($exactEmailMatch && $this->shareeEnumerationFullMatch) { try { - $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]); + $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? ''); } catch (\InvalidArgumentException $e) { continue; } @@ -174,7 +174,7 @@ class MailPlugin implements ISearchPlugin { if ($this->shareeEnumeration) { try { - $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0]); + $cloud = $this->cloudIdManager->resolveCloudId($contact['CLOUD'][0] ?? ''); } catch (\InvalidArgumentException $e) { continue; } |