]> git.mxchange.org Git - friendica.git/commitdiff
We have to disable the SSL checks, otherwise the communication will fail for servers...
authorMichael Vogel <icarus@dabo.de>
Sun, 1 Mar 2015 09:53:49 +0000 (10:53 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 1 Mar 2015 09:53:49 +0000 (10:53 +0100)
include/network.php

index ab7a9c6297dfbe70772aa9f564e43c5b85c089e0..14497f01a2d600f66fa1aaedba732e2bacc018c6 100644 (file)
@@ -34,6 +34,11 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_
                ));
        }
 
+       // There are many servers out there that don't have valid certificates
+       // We have to disable the checks :-(
+       @curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
+       @curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
+
        @curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
        @curl_setopt($ch, CURLOPT_USERAGENT, $a->get_useragent());