summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorClaus-Justus Heine <himself@claus-justus-heine.de>2022-02-01 12:47:57 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-02-29 07:50:16 +0000
commit7300db7e9b0f11edb105cb81822b4376da8ff1b3 (patch)
tree8f9a95b753bcd8d1409f4f4bb7fc90e35bf36c51 /lib
parentf7470ab973d9dc3c979accd95985d71cf80653fa (diff)
downloadnextcloud-server-7300db7e9b0f11edb105cb81822b4376da8ff1b3.tar.gz
nextcloud-server-7300db7e9b0f11edb105cb81822b4376da8ff1b3.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>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index 37ebf2fb129..770da77f26a 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -140,7 +140,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;
}
@@ -165,7 +165,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;
}