curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 36000);
// ensures any Location headers are followed
- if (ini_get('open_basedir') == '' && ini_get('safe_mode') == 'Off') {
+ if (ini_get('open_basedir') == '') {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
}