Browse Source

Harden EncryptAll check for empty email

Reported by psalm
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/25669/head
Roeland Jago Douma 6 years ago
parent
commit
918af40f05
  1. 2
      apps/encryption/lib/Crypto/EncryptAll.php

2
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;
}

Loading…
Cancel
Save