0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

Fixes the, admittedly rare, case when the display name is '0'.

This commit is contained in:
campbell-m 2022-12-20 20:45:14 +00:00
parent 9c20af3fe4
commit ac3f59f657

View File

@ -2423,7 +2423,7 @@ class PHPMailer
*/ */
public function addrFormat($addr) public function addrFormat($addr)
{ {
if (empty($addr[1])) { //No name provided if (!isset($addr[1]) || ($addr[1] === '')) { //No name provided
return $this->secureHeader($addr[0]); return $this->secureHeader($addr[0]);
} }