From 535819a085ca8e8ff99dcf4a4b02702868e0beb8 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 26 Mar 2014 00:05:41 -0700 Subject: [PATCH] CRM_Utils_HttpClient - Fix detection of safe-mode (which in turn determines whether follow-redirects is enabled) --- CRM/Utils/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.25.1