CRM_Utils_HttpClient - Fix detection of safe-mode (which in turn determines whether...
authorTim Otten <totten@civicrm.org>
Wed, 26 Mar 2014 07:05:41 +0000 (00:05 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 26 Mar 2014 07:05:41 +0000 (00:05 -0700)
CRM/Utils/HttpClient.php

index e9b1a1bdd243878ff23c1851f8f96998d971797e..823c995222c4b57ba605c2d8c58a6150c8de82a4 100644 (file)
@@ -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);
   }
 
 }