Make WordPress Core


Ignore:
Timestamp:
12/03/2024 03:20:13 PM (8 weeks ago)
Author:
SergeyBiryukov
Message:

External Libraries: Upgrade PHPMailer to version 6.9.3.

This is a maintenance release, adding support for the release version of PHP 8.4, and experimental support for PHP 8.5.

References:

Follow-up to [50628], [50799], [51169], [51634], [51635], [52252], [52749], [52811], [53500], [53535], [53917], [54427], [54937], [55557], [56484], [57137], [59246].

Props desrosj, yogeshbhutkar, ayeshrajans.
Fixes #62632.

File:
1 edited

Legend:

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

    r59246 r59481  
    254254     * as defined in RFC5322 section 3.6.4 or it will be ignored.
    255255     *
    256      * @see https://tools.ietf.org/html/rfc5322#section-3.6.4
     256     * @see https://www.rfc-editor.org/rfc/rfc5322#section-3.6.4
    257257     *
    258258     * @var string
     
    388388     *           delivery's outcome (success or failure) is not yet decided.
    389389     *
    390      * @see https://tools.ietf.org/html/rfc3461 See section 4.1 for more information about NOTIFY
     390     * @see https://www.rfc-editor.org/rfc/rfc3461.html#section-4.1 for more information about NOTIFY
    391391     */
    392392    public $dsn = '';
     
    757757     * @var string
    758758     */
    759     const VERSION = '6.9.2';
     759    const VERSION = '6.9.3';
    760760
    761761    /**
     
    18741874    protected static function isPermittedPath($path)
    18751875    {
    1876         //Matches scheme definition from https://tools.ietf.org/html/rfc3986#section-3.1
     1876        //Matches scheme definition from https://www.rfc-editor.org/rfc/rfc3986#section-3.1
    18771877        return !preg_match('#^[a-z][a-z\d+.-]*://#i', $path);
    18781878    }
     
    27082708
    27092709        //Only allow a custom message ID if it conforms to RFC 5322 section 3.6.4
    2710         //https://tools.ietf.org/html/rfc5322#section-3.6.4
     2710        //https://www.rfc-editor.org/rfc/rfc5322#section-3.6.4
    27112711        if (
    27122712            '' !== $this->MessageID &&
     
    49134913     * Canonicalized headers should *always* use CRLF, regardless of mailer setting.
    49144914     *
    4915      * @see https://tools.ietf.org/html/rfc6376#section-3.4.2
     4915     * @see https://www.rfc-editor.org/rfc/rfc6376#section-3.4.2
    49164916     *
    49174917     * @param string $signHeader Header
     
    49254925        //Unfold header lines
    49264926        //Note PCRE \s is too broad a definition of whitespace; RFC5322 defines it as `[ \t]`
    4927         //@see https://tools.ietf.org/html/rfc5322#section-2.2
     4927        //@see https://www.rfc-editor.org/rfc/rfc5322#section-2.2
    49284928        //That means this may break if you do something daft like put vertical tabs in your headers.
    49294929        $signHeader = preg_replace('/\r\n[ \t]+/', ' ', $signHeader);
     
    49574957     * Canonicalized bodies should *always* use CRLF, regardless of mailer setting.
    49584958     *
    4959      * @see https://tools.ietf.org/html/rfc6376#section-3.4.3
     4959     * @see https://www.rfc-editor.org/rfc/rfc6376#section-3.4.3
    49604960     *
    49614961     * @param string $body Message Body
     
    49934993        $DKIMtime = time();
    49944994        //Always sign these headers without being asked
    4995         //Recommended list from https://tools.ietf.org/html/rfc6376#section-5.4.1
     4995        //Recommended list from https://www.rfc-editor.org/rfc/rfc6376#section-5.4.1
    49964996        $autoSignHeaders = [
    49974997            'from',
     
    50995099        //The DKIM-Signature header is included in the signature *except for* the value of the `b` tag
    51005100        //which is appended after calculating the signature
    5101         //https://tools.ietf.org/html/rfc6376#section-3.5
     5101        //https://www.rfc-editor.org/rfc/rfc6376#section-3.5
    51025102        $dkimSignatureHeader = 'DKIM-Signature: v=1;' .
    51035103            ' d=' . $this->DKIM_domain . ';' .
Note: See TracChangeset for help on using the changeset viewer.