Make WordPress Core


Ignore:
Timestamp:
11/30/2020 05:08:24 PM (4 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Upgrade PHPMailer to version 6.2.0.

For a full list of changes in this update, see the PHPMailer GitHub:
https://github.com/PHPMailer/PHPMailer/compare/v6.1.8...v6.2.0

Props ayeshrajans, jrf.
Fixes #51874.

File:
1 edited

Legend:

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

    r49136 r49713  
    11<?php
     2
    23/**
    34 * PHPMailer RFC821 SMTP email transport class.
     
    3536     * @var string
    3637     */
    37     const VERSION = '6.1.8';
     38    const VERSION = '6.2.0';
    3839
    3940    /**
     
    540541                }
    541542                // Send encoded username and password
    542                 if (!$this->sendCommand(
    543                     'User & Password',
    544                     base64_encode("\0" . $username . "\0" . $password),
    545                     235
    546                 )
     543                if (
     544                    !$this->sendCommand(
     545                        'User & Password',
     546                        base64_encode("\0" . $username . "\0" . $password),
     547                        235
     548                    )
    547549                ) {
    548550                    return false;
     
    10871089        //If SMTP transcripts are left enabled, or debug output is posted online
    10881090        //it can leak credentials, so hide credentials in all but lowest level
    1089         if (self::DEBUG_LOWLEVEL > $this->do_debug &&
    1090             in_array($command, ['User & Password', 'Username', 'Password'], true)) {
     1091        if (
     1092            self::DEBUG_LOWLEVEL > $this->do_debug &&
     1093            in_array($command, ['User & Password', 'Username', 'Password'], true)
     1094        ) {
    10911095            $this->edebug('CLIENT -> SERVER: [credentials hidden]', self::DEBUG_CLIENT);
    10921096        } else {
     
    12081212                );
    12091213
    1210                 //stream_select returns false when the `select` system call is interrupted by an incoming signal, try the select again
     1214                //stream_select returns false when the `select` system call is interrupted
     1215                //by an incoming signal, try the select again
    12111216                if (stripos($message, 'interrupted system call') !== false) {
    12121217                    $this->edebug(
Note: See TracChangeset for help on using the changeset viewer.