Changeset 49176 for trunk/src/wp-includes/SimplePie/File.php
- Timestamp:
- 10/16/2020 05:18:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/SimplePie/File.php
r47733 r49176 110 110 curl_setopt($fp, CURLOPT_USERAGENT, $useragent); 111 111 curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2); 112 if (!ini_get('open_basedir') && version_compare(SimplePie_Misc::get_curl_version(), '7.15.2', '>='))113 {114 curl_setopt($fp, CURLOPT_FOLLOWLOCATION, 1);115 curl_setopt($fp, CURLOPT_MAXREDIRS, $redirects);116 }117 112 foreach ($curl_options as $curl_param => $curl_value) { 118 113 curl_setopt($fp, $curl_param, $curl_value); … … 149 144 $location = SimplePie_Misc::absolutize_url($this->headers['location'], $url); 150 145 $previousStatusCode = $this->status_code; 151 $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen );146 $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_options); 152 147 $this->permanent_url = ($previousStatusCode == 301) ? $location : $url; 153 148 return; … … 234 229 $location = SimplePie_Misc::absolutize_url($this->headers['location'], $url); 235 230 $previousStatusCode = $this->status_code; 236 $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen );231 $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_options); 237 232 $this->permanent_url = ($previousStatusCode == 301) ? $location : $url; 238 233 return;
Note: See TracChangeset
for help on using the changeset viewer.