diff --git a/lib/Client/AbstractCurl.php b/lib/Client/AbstractCurl.php index be6293d2..11f452f4 100644 --- a/lib/Client/AbstractCurl.php +++ b/lib/Client/AbstractCurl.php @@ -193,7 +193,7 @@ private function setOptionsFromParameterBag($curl, ParameterBag $options): void curl_setopt($curl, \CURLOPT_PROXY, $proxy); } - $canFollow = !\ini_get('safe_mode') && !\ini_get('open_basedir') && $options->get('allow_redirects'); + $canFollow = !\ini_get('open_basedir') && $options->get('allow_redirects'); curl_setopt($curl, \CURLOPT_FOLLOWLOCATION, $canFollow); curl_setopt($curl, \CURLOPT_MAXREDIRS, $canFollow ? $options->get('max_redirects') : 0); curl_setopt($curl, \CURLOPT_SSL_VERIFYPEER, $options->get('verify') ? 1 : 0);