Ticket #7458: 7458.diff
| File 7458.diff, 710 bytes (added by , 18 years ago) |
|---|
-
wp-includes/http.php
840 840 curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] ); 841 841 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 1 ); 842 842 curl_setopt( $handle, CURLOPT_TIMEOUT, $r['timeout'] ); 843 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true );844 843 curl_setopt( $handle, CURLOPT_MAXREDIRS, $r['redirection'] ); 845 844 845 if ( !ini_get('safe_mode') && !ini_get('open_basedir') ) 846 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true ); 847 846 848 if( ! is_null($headers) ) 847 849 curl_setopt( $handle, CURLOPT_HTTPHEADER, $headers ); 848 850