WordPress.org

Make WordPress Core

Changeset 12749


Ignore:
Timestamp:
01/17/10 09:31:37 (4 years ago)
Author:
dd32
Message:

Fix Typo in r12747, Move cURL Redirection check higher. See #11305

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r12748 r12749  
    14171417        curl_close( $handle ); 
    14181418 
    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. 
    14231420        if ( !empty($theHeaders['headers']['location']) && (ini_get('safe_mode') || ini_get('open_basedir')) ) { 
    14241421            if ( $r['redirection']-- > 0 ) { 
     
    14281425            } 
    14291426        } 
     1427 
     1428        if ( true === $r['decompress'] && true === WP_Http_Encoding::should_decode($theHeaders['headers']) ) 
     1429            $theBody = WP_Http_Encoding::decompress( $theBody ); 
    14301430 
    14311431        return array('headers' => $theHeaders['headers'], 'body' => $theBody, 'response' => $response, 'cookies' => $theHeaders['cookies']); 
Note: See TracChangeset for help on using the changeset viewer.