Browse Source

Harden EncryptAll check for empty email

Reported by psalm
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v22.0.0beta1
Roeland Jago Douma 3 years ago
parent
commit
918af40f05
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/encryption/lib/Crypto/EncryptAll.php

+ 1
- 1
apps/encryption/lib/Crypto/EncryptAll.php View File

@@ -417,7 +417,7 @@ class EncryptAll {
$recipientDisplayName = $recipient->getDisplayName();
$to = $recipient->getEMailAddress();

if ($to === '') {
if ($to === '' || $to === null) {
$noMail[] = $uid;
continue;
}

Loading…
Cancel
Save