Explain why

This commit is contained in:
Marcus Bointon 2025-03-27 16:51:31 +01:00
parent 2818f3e6a3
commit 6467d54259
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 2 additions and 0 deletions

View File

@ -1176,6 +1176,8 @@ class PHPMailer
self::$validator === 'php' && self::$validator === 'php' &&
$this->addressHasUnicodeLocalPart($address) $this->addressHasUnicodeLocalPart($address)
) { ) {
//The caller has not altered the validator, so assume that they want UTF-8 support
//instead of failing
$this->CharSet = self::CHARSET_UTF8; $this->CharSet = self::CHARSET_UTF8;
self::$validator = 'eai'; self::$validator = 'eai';
} }