WordPress.org

Make WordPress Core

Changeset 8534


Ignore:
Timestamp:
08/04/08 17:03:05 (6 years ago)
Author:
ryan
Message:

Don't call curl_setopt() if safe_mode is enabled. Props ionfish and Po0ky. fixes #7458 see #4779

File:
1 edited

Legend:

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

    r8533 r8534  
    863863        curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 1 ); 
    864864        curl_setopt( $handle, CURLOPT_TIMEOUT, $r['timeout'] ); 
    865         curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true ); 
    866865        curl_setopt( $handle, CURLOPT_MAXREDIRS, $r['redirection'] ); 
    867866 
     867        if ( !ini_get('safe_mode') && !ini_get('open_basedir') ) 
     868            curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true ); 
     869         
    868870        if( ! is_null($headers) ) 
    869871            curl_setopt( $handle, CURLOPT_HTTPHEADER, $headers ); 
Note: See TracChangeset for help on using the changeset viewer.