X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHttpClient.php;h=dc88f47559b7b8f58b972092bc9dd4f52e2007b2;hb=6a2fe65b124c9977dff8e006280624ad599a59e0;hp=823c995222c4b57ba605c2d8c58a6150c8de82a4;hpb=80d8076734fa62edc7ce51e4ce520979e11d73fd;p=civicrm-core.git diff --git a/CRM/Utils/HttpClient.php b/CRM/Utils/HttpClient.php index 823c995222..dc88f47559 100644 --- a/CRM/Utils/HttpClient.php +++ b/CRM/Utils/HttpClient.php @@ -1,9 +1,9 @@ connectionTimeout = $connectionTimeout; } @@ -145,7 +151,9 @@ class CRM_Utils_HttpClient { * Send an HTTP POST for a remote resource * * @param string $remoteFile URL of a .zip file - * @param string $localFile path at which to store the .zip file + * @param $params + * + * @internal param string $localFile path at which to store the .zip file * @return array array(0 => STATUS_OK|STATUS_DL_ERROR, 1 => string) */ public function post($remoteFile, $params) { @@ -205,8 +213,11 @@ class CRM_Utils_HttpClient { return array($ch, $caConfig); } + /** + * @return bool + */ public function isRedirectSupported() { - return (ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off' || ini_get('safe_mode') === FALSE); + return (ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off' || ini_get('safe_mode') == '' || ini_get('safe_mode') === FALSE); } }