### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
1448 | 1448 | curl_close( $handle ); |
1449 | 1449 | |
1450 | 1450 | // See #11305 - When running under safe mode, redirection is disabled above. Handle it manually. |
1451 | | if ( !empty($theHeaders['headers']['location']) && (ini_get('safe_mode') || ini_get('open_basedir')) ) { |
| 1451 | if ( ( $code = (string) $response['code'] ) && '3' === $code[0] && !empty($theHeaders['headers']['location']) && (ini_get('safe_mode') || ini_get('open_basedir')) ) { |
1452 | 1452 | if ( $r['redirection']-- > 0 ) { |
1453 | 1453 | return $this->request($theHeaders['headers']['location'], $r); |
1454 | 1454 | } else { |