Make WordPress Core


Ignore:
Timestamp:
12/20/2021 07:31:37 PM (3 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Update the SimplePie library to version 1.5.7.

This version shows significant improvements in the compatibility of SimplePie with PHP 8.0, 8.1, and even contains an initial PHP 8.2 fix. The release also contains a number of other bug fixes.

Release notes: https://github.com/simplepie/simplepie/releases/tag/1.5.7

For a full list of changes in this update, see the SimplePie GitHub:
https://github.com/simplepie/simplepie/compare/1.5.6...1.5.7

Follow-up to [47733], [49176].

Props jrf, SergeyBiryukov.
Fixes #54659.

File:
1 edited

Legend:

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

    r49176 r52393  
    107107                curl_setopt($fp, CURLOPT_TIMEOUT, $timeout);
    108108                curl_setopt($fp, CURLOPT_CONNECTTIMEOUT, $timeout);
    109                 curl_setopt($fp, CURLOPT_REFERER, $url);
     109                curl_setopt($fp, CURLOPT_REFERER, SimplePie_Misc::url_remove_credentials($url));
    110110                curl_setopt($fp, CURLOPT_USERAGENT, $useragent);
    111111                curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2);
     
    120120                    $this->headers = curl_exec($fp);
    121121                }
     122                $this->status_code = curl_getinfo($fp, CURLINFO_HTTP_CODE);
    122123                if (curl_errno($fp))
    123124                {
Note: See TracChangeset for help on using the changeset viewer.