Changeset 12749
- Timestamp:
- 01/17/2010 09:31:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r12748 r12749 1417 1417 curl_close( $handle ); 1418 1418 1419 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders['headers']) ) 1420 $theBody = WP_Http_Encoding::decompress( $theBody ); 1421 1422 // See #11605 - When running under safe mode, redirection is disabled above. Handle it manually. 1419 // See #11305 - When running under safe mode, redirection is disabled above. Handle it manually. 1423 1420 if ( !empty($theHeaders['headers']['location']) && (ini_get('safe_mode') || ini_get('open_basedir')) ) { 1424 1421 if ( $r['redirection']-- > 0 ) { … … 1428 1425 } 1429 1426 } 1427 1428 if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders['headers']) ) 1429 $theBody = WP_Http_Encoding::decompress( $theBody ); 1430 1430 1431 1431 return array('headers' => $theHeaders['headers'], 'body' => $theBody, 'response' => $response, 'cookies' => $theHeaders['cookies']);
Note: See TracChangeset
for help on using the changeset viewer.