Changeset 12747
- Timestamp:
- 01/17/2010 08:15:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r12746 r12747 1397 1397 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders['headers']) ) 1398 1398 $theBody = WP_Http_Encoding::decompress( $theBody ); 1399 1400 // See #11605 - When running under safe mode, redirection is disabled above. Handle it manually. 1401 if ( !empty($theHeaders['headers']['location']) && (ini_get('safe_mode') || ini_get('open_basedir')) ) { 1402 if ( $r['redirection']-- > 0 ) { 1403 return $this->request($theHeaders['headers']['location'], $r); 1404 } else { 1405 return new WP_Error('http_request_failed', __('Too many redirects.')); 1406 } 1407 } 1399 1408 1400 1409 return array('headers' => $theHeaders['headers'], 'body' => $theBody, 'response' => $response, 'cookies' => $theHeaders['cookies']);
Note: See TracChangeset
for help on using the changeset viewer.