/**
* Check if redirects are allowed
*
* @return boolean
*
* @since 3.0.0
*/
private function redirectsAllowed()
{
$curlVersion = curl_version();
// If open_basedir is enabled we also need to check if libcurl version is 7.19.4 or higher
if (!ini_get('open_basedir') || version_compare($curlVersion['version'], '7.19.4', '>=')) {
return true;
}
return false;
}