mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 16:08:12 +01:00
External Libraries: Upgrade PHPMailer to version 6.6.2.
Release notes: https://github.com/PHPMailer/PHPMailer/releases/tag/v6.6.2. For a full list of changes in this update, see the PHPMailer GitHub: https://github.com/PHPMailer/PHPMailer/compare/v6.6.0...v6.6.2. Props ayeshrajans, jrf. Fixes #55976. Built from https://develop.svn.wordpress.org/trunk@53500 git-svn-id: http://core.svn.wordpress.org/trunk@53089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77f62c11db
commit
cc05e7b608
@ -750,7 +750,7 @@ class PHPMailer
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '6.6.0';
|
const VERSION = '6.6.2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error severity: message only, continue processing.
|
* Error severity: message only, continue processing.
|
||||||
@ -1066,8 +1066,8 @@ class PHPMailer
|
|||||||
* Addresses that have been added already return false, but do not throw exceptions.
|
* Addresses that have been added already return false, but do not throw exceptions.
|
||||||
*
|
*
|
||||||
* @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo'
|
* @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo'
|
||||||
* @param string $address The email address to send, resp. to reply to
|
* @param string $address The email address
|
||||||
* @param string $name
|
* @param string $name An optional username associated with the address
|
||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*
|
*
|
||||||
@ -1075,9 +1075,11 @@ class PHPMailer
|
|||||||
*/
|
*/
|
||||||
protected function addOrEnqueueAnAddress($kind, $address, $name)
|
protected function addOrEnqueueAnAddress($kind, $address, $name)
|
||||||
{
|
{
|
||||||
$address = trim($address);
|
$pos = false;
|
||||||
$name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
|
if ($address !== null) {
|
||||||
$pos = strrpos($address, '@');
|
$address = trim($address);
|
||||||
|
$pos = strrpos($address, '@');
|
||||||
|
}
|
||||||
if (false === $pos) {
|
if (false === $pos) {
|
||||||
//At-sign is missing.
|
//At-sign is missing.
|
||||||
$error_message = sprintf(
|
$error_message = sprintf(
|
||||||
@ -1094,8 +1096,14 @@ class PHPMailer
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if ($name !== null) {
|
||||||
|
$name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
|
||||||
|
} else {
|
||||||
|
$name = '';
|
||||||
|
}
|
||||||
$params = [$kind, $address, $name];
|
$params = [$kind, $address, $name];
|
||||||
//Enqueue addresses with IDN until we know the PHPMailer::$CharSet.
|
//Enqueue addresses with IDN until we know the PHPMailer::$CharSet.
|
||||||
|
//Domain is assumed to be whatever is after the last @ symbol in the address
|
||||||
if (static::idnSupported() && $this->has8bitChars(substr($address, ++$pos))) {
|
if (static::idnSupported() && $this->has8bitChars(substr($address, ++$pos))) {
|
||||||
if ('Reply-To' !== $kind) {
|
if ('Reply-To' !== $kind) {
|
||||||
if (!array_key_exists($address, $this->RecipientsQueue)) {
|
if (!array_key_exists($address, $this->RecipientsQueue)) {
|
||||||
|
@ -35,7 +35,7 @@ class SMTP
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '6.6.0';
|
const VERSION = '6.6.2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SMTP line break constant.
|
* SMTP line break constant.
|
||||||
@ -1037,7 +1037,10 @@ class SMTP
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setError('');
|
//Don't clear the error store when using keepalive
|
||||||
|
if ($command !== 'RSET') {
|
||||||
|
$this->setError('');
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-53499';
|
$wp_version = '6.1-alpha-53500';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user