Make WordPress Core


Ignore:
Timestamp:
11/26/2021 12:41:54 AM (2 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Upgrade PHPMailer to version 6.5.3.

The latest release includes official PHP 8.1 support, as well as some small bug fixes, including one for PHP 5.6 cross-version support.

Release notes:

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

Follow-up to [50628], [50799], [51169], [51634], [51635].

Props jrf, Synchro.
Fixes #54514.

File:
1 edited

Legend:

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

    r51635 r52252  
    751751     * @var string
    752752     */
    753     const VERSION = '6.5.1';
     753    const VERSION = '6.5.3';
    754754
    755755    /**
     
    14521452                if (defined('INTL_IDNA_VARIANT_UTS46')) {
    14531453                    //Use the current punycode standard (appeared in PHP 7.2)
    1454                     $punycode = idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_UTS46);
     1454                    $punycode = idn_to_ascii(
     1455                        $domain,
     1456                        \IDNA_DEFAULT | \IDNA_USE_STD3_RULES | \IDNA_CHECK_BIDI |
     1457                            \IDNA_CHECK_CONTEXTJ | \IDNA_NONTRANSITIONAL_TO_ASCII,
     1458                        \INTL_IDNA_VARIANT_UTS46
     1459                    );
    14551460                } elseif (defined('INTL_IDNA_VARIANT_2003')) {
    14561461                    //Fall back to this old, deprecated/removed encoding
     
    17001705        //Qmail docs: http://www.qmail.org/man/man8/qmail-inject.html
    17011706        //Example problem: https://www.drupal.org/node/1057954
    1702         if (empty($this->Sender) && !empty(ini_get('sendmail_from'))) {
     1707
     1708        //PHP 5.6 workaround
     1709        $sendmail_from_value = ini_get('sendmail_from');
     1710        if (empty($this->Sender) && !empty($sendmail_from_value)) {
    17031711            //PHP config has a sender address we can use
    17041712            $this->Sender = ini_get('sendmail_from');
     
    18821890        //Example problem: https://www.drupal.org/node/1057954
    18831891        //CVE-2016-10033, CVE-2016-10045: Don't pass -f if characters will be escaped.
    1884         if (empty($this->Sender) && !empty(ini_get('sendmail_from'))) {
     1892
     1893        //PHP 5.6 workaround
     1894        $sendmail_from_value = ini_get('sendmail_from');
     1895        if (empty($this->Sender) && !empty($sendmail_from_value)) {
    18851896            //PHP config has a sender address we can use
    18861897            $this->Sender = ini_get('sendmail_from');
     
    21992210     *                          Optionally, the language code can be enhanced with a 4-character
    22002211     *                          script annotation and/or a 2-character country annotation.
    2201      * @param string $lang_path Path to the language file directory, with trailing separator (slash).D
     2212     * @param string $lang_path Path to the language file directory, with trailing separator (slash)
    22022213     *                          Do not set this from user input!
    22032214     *
Note: See TracChangeset for help on using the changeset viewer.