X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHttpClient.php;h=3a34e18970c665a5c3b3e68a6871ec71863c27f0;hb=1d315b34a5061bd49fd96a4398f953c6da5344b6;hp=c2d12ae18cffc677d923bd78b7b1c62a78147289;hpb=5ef139aa041f9ca1e7ebd6d915b0e232ba961526;p=civicrm-core.git diff --git a/CRM/Utils/HttpClient.php b/CRM/Utils/HttpClient.php index c2d12ae18c..3a34e18970 100644 --- a/CRM/Utils/HttpClient.php +++ b/CRM/Utils/HttpClient.php @@ -48,7 +48,8 @@ class CRM_Utils_HttpClient { } /** - * @param null $connectionTimeout + * @param int|null $connectionTimeout + * seconds; or NULL to use system default */ public function __construct($connectionTimeout = NULL) { $this->connectionTimeout = $connectionTimeout; @@ -201,7 +202,7 @@ class CRM_Utils_HttpClient { * @return bool */ public function isRedirectSupported() { - return (ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off' || ini_get('safe_mode') == '' || ini_get('safe_mode') === FALSE); + return (ini_get('open_basedir') == ''); } }