summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-02-16 08:16:19 +0100
committerGitHub <noreply@github.com>2021-02-16 08:16:19 +0100
commita649dff1795f6df7e70742bea5e45265903476d4 (patch)
tree1f66a5bdcf33730580de00e01b947be5fa9c8f1b /apps
parent940ea8373d679cdbd6d1b5c42fe1154e531abf2e (diff)
parent918af40f05ec246e65149704d27694d65598136d (diff)
downloadnextcloud-server-a649dff1795f6df7e70742bea5e45265903476d4.tar.gz
nextcloud-server-a649dff1795f6df7e70742bea5e45265903476d4.zip
Merge pull request #25669 from nextcloud/fix/psalm/encryptall
Harden EncryptAll check for empty email
Diffstat (limited to 'apps')
-rw-r--r--apps/encryption/lib/Crypto/EncryptAll.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/Crypto/EncryptAll.php b/apps/encryption/lib/Crypto/EncryptAll.php
index 3d18d8b3a53..a74e6bf08d4 100644
--- a/apps/encryption/lib/Crypto/EncryptAll.php
+++ b/apps/encryption/lib/Crypto/EncryptAll.php
@@ -417,7 +417,7 @@ class EncryptAll {
$recipientDisplayName = $recipient->getDisplayName();
$to = $recipient->getEMailAddress();
- if ($to === '') {
+ if ($to === '' || $to === null) {
$noMail[] = $uid;
continue;
}