Changeset 52393 for trunk/src/wp-includes/SimplePie/File.php
- Timestamp:
- 12/20/2021 07:31:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/SimplePie/File.php
r49176 r52393 107 107 curl_setopt($fp, CURLOPT_TIMEOUT, $timeout); 108 108 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)); 110 110 curl_setopt($fp, CURLOPT_USERAGENT, $useragent); 111 111 curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2); … … 120 120 $this->headers = curl_exec($fp); 121 121 } 122 $this->status_code = curl_getinfo($fp, CURLINFO_HTTP_CODE); 122 123 if (curl_errno($fp)) 123 124 {
Note: See TracChangeset
for help on using the changeset viewer.