From: Tim Otten Date: Wed, 26 Mar 2014 07:05:41 +0000 (-0700) Subject: CRM_Utils_HttpClient - Fix detection of safe-mode (which in turn determines whether... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=535819a085ca8e8ff99dcf4a4b02702868e0beb8;p=civicrm-core.git CRM_Utils_HttpClient - Fix detection of safe-mode (which in turn determines whether follow-redirects is enabled) --- diff --git a/CRM/Utils/HttpClient.php b/CRM/Utils/HttpClient.php index e9b1a1bdd2..823c995222 100644 --- a/CRM/Utils/HttpClient.php +++ b/CRM/Utils/HttpClient.php @@ -206,7 +206,7 @@ class CRM_Utils_HttpClient { } public function isRedirectSupported() { - return ini_get('open_basedir') == '' && ini_get('safe_mode') == 'Off'; + return (ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off' || ini_get('safe_mode') === FALSE); } }