Make WordPress Core

Changeset 54427


Ignore:
Timestamp:
10/09/2022 05:10:22 PM (18 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes/PHPMailer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/PHPMailer/PHPMailer.php

    r53917 r54427  
    751751     * @var string
    752752     */
    753     const VERSION = '6.6.4';
     753    const VERSION = '6.6.5';
    754754
    755755    /**
     
    16741674            }
    16751675        } catch (Exception $exc) {
    1676             if ($this->Mailer === 'smtp' && $this->SMTPKeepAlive == true) {
     1676            if ($this->Mailer === 'smtp' && $this->SMTPKeepAlive == true && $this->smtp->connected()) {
    16771677                $this->smtp->reset();
    16781678            }
     
    18661866            return false;
    18671867        }
    1868         $readable = file_exists($path);
     1868        $readable = is_file($path);
    18691869        //If not a UNC path (expected to start with \\), check read permission, see #2069
    18701870        if (strpos($path, '\\\\') !== 0) {
     
    21042104        $this->smtp->setDebugOutput($this->Debugoutput);
    21052105        $this->smtp->setVerp($this->do_verp);
     2106        if ($this->Host === null) {
     2107            $this->Host = 'localhost';
     2108        }
    21062109        $hosts = explode(';', $this->Host);
    21072110        $lastexception = null;
  • trunk/src/wp-includes/PHPMailer/SMTP.php

    r53917 r54427  
    3636     * @var string
    3737     */
    38     const VERSION = '6.6.4';
     38    const VERSION = '6.6.5';
    3939
    4040    /**
     
    683683    public function close()
    684684    {
    685         $this->setError('');
    686685        $this->server_caps = null;
    687686        $this->helo_rply = null;
Note: See TracChangeset for help on using the changeset viewer.