Back to CurlTransport class

Method redirectsAllowed

private bool
redirectsAllowed
()
Check if redirects are allowed
Returns
  • bool
Since
  • 3.0.0
Class: CurlTransport
Project: Joomla

Method redirectsAllowed - Source code

/**
 * 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;
}