External Libraries: Upgrade PHPMailer to version 6.6.5.
This is a maintenance release with minor changes: * Don't try to issue `RSET` if there has been a connection error. * Reject attempts to add folders as attachments. * Don't suppress earlier error messages on `close()`. * Handle `Host === null` better. Release notes: https://github.com/PHPMailer/PHPMailer/releases/tag/v6.6.5 For a full list of changes in this update, see the PHPMailer GitHub: https://github.com/PHPMailer/PHPMailer/compare/v6.6.4...v6.6.5 Follow-up to [50628], [50799], [51169], [51634], [51635], [52252], [52749], [52811], [53500], [53535], [53917]. Props ayeshrajans, Synchro. Fixes #56772. Built from https://develop.svn.wordpress.org/trunk@54427 git-svn-id: http://core.svn.wordpress.org/trunk@53986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2e827f55b4
commit
05c3709db3
|
@ -750,7 +750,7 @@ class PHPMailer
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '6.6.4';
|
const VERSION = '6.6.5';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error severity: message only, continue processing.
|
* Error severity: message only, continue processing.
|
||||||
|
@ -1673,7 +1673,7 @@ class PHPMailer
|
||||||
return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
|
return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
|
||||||
}
|
}
|
||||||
} catch (Exception $exc) {
|
} catch (Exception $exc) {
|
||||||
if ($this->Mailer === 'smtp' && $this->SMTPKeepAlive == true) {
|
if ($this->Mailer === 'smtp' && $this->SMTPKeepAlive == true && $this->smtp->connected()) {
|
||||||
$this->smtp->reset();
|
$this->smtp->reset();
|
||||||
}
|
}
|
||||||
$this->setError($exc->getMessage());
|
$this->setError($exc->getMessage());
|
||||||
|
@ -1865,7 +1865,7 @@ class PHPMailer
|
||||||
if (!static::isPermittedPath($path)) {
|
if (!static::isPermittedPath($path)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$readable = file_exists($path);
|
$readable = is_file($path);
|
||||||
//If not a UNC path (expected to start with \\), check read permission, see #2069
|
//If not a UNC path (expected to start with \\), check read permission, see #2069
|
||||||
if (strpos($path, '\\\\') !== 0) {
|
if (strpos($path, '\\\\') !== 0) {
|
||||||
$readable = $readable && is_readable($path);
|
$readable = $readable && is_readable($path);
|
||||||
|
@ -2103,6 +2103,9 @@ class PHPMailer
|
||||||
$this->smtp->setDebugLevel($this->SMTPDebug);
|
$this->smtp->setDebugLevel($this->SMTPDebug);
|
||||||
$this->smtp->setDebugOutput($this->Debugoutput);
|
$this->smtp->setDebugOutput($this->Debugoutput);
|
||||||
$this->smtp->setVerp($this->do_verp);
|
$this->smtp->setVerp($this->do_verp);
|
||||||
|
if ($this->Host === null) {
|
||||||
|
$this->Host = 'localhost';
|
||||||
|
}
|
||||||
$hosts = explode(';', $this->Host);
|
$hosts = explode(';', $this->Host);
|
||||||
$lastexception = null;
|
$lastexception = null;
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class SMTP
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '6.6.4';
|
const VERSION = '6.6.5';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SMTP line break constant.
|
* SMTP line break constant.
|
||||||
|
@ -682,7 +682,6 @@ class SMTP
|
||||||
*/
|
*/
|
||||||
public function close()
|
public function close()
|
||||||
{
|
{
|
||||||
$this->setError('');
|
|
||||||
$this->server_caps = null;
|
$this->server_caps = null;
|
||||||
$this->helo_rply = null;
|
$this->helo_rply = null;
|
||||||
if (is_resource($this->smtp_conn)) {
|
if (is_resource($this->smtp_conn)) {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-beta3-54426';
|
$wp_version = '6.1-beta3-54427';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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