CRM-13227, CRM-14744: full fix
authorNicolas Ganivet <nicolas@cividesk.com>
Mon, 6 Oct 2014 21:53:24 +0000 (15:53 -0600)
committerNicolas Ganivet <nicolas@cividesk.com>
Mon, 6 Oct 2014 21:59:07 +0000 (15:59 -0600)
CRM/Utils/System.php

index 94fc2b69b93aa79a6d158edf10cc7981e1c0e000..2aef7f37258190dad4dcbc34b56687fe6e63ea8d 100644 (file)
@@ -981,7 +981,8 @@ class CRM_Utils_System {
     // lets capture the return stuff rather than echo
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE );
 
-    return curl_exec($ch);
+    // CRM-13227, CRM-14744: only return the SSL error status
+    return (curl_exec($ch) !== FALSE);
   }
 
   /**