From: Andrew Dolgov Date: Mon, 17 Aug 2015 04:53:50 +0000 (+0300) Subject: curl: let's verify ssl peers X-Git-Tag: 16.3~130 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d5eaaa050821a7b07baf932d6ce705f3c67ef334;p=tt-rss.git curl: let's verify ssl peers --- diff --git a/include/functions.php b/include/functions.php index d68f6bf1..31008148 100644 --- a/include/functions.php +++ b/include/functions.php @@ -373,7 +373,6 @@ curl_setopt($ch, CURLOPT_MAXREDIRS, 20); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_USERAGENT, $useragent ? $useragent : SELF_USER_AGENT); diff --git a/include/functions2.php b/include/functions2.php index b4018453..6a83a44f 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -2283,7 +2283,6 @@ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); //curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); //CURLOPT_FOLLOWLOCATION Disabled... curl_setopt($curl, CURLOPT_TIMEOUT, 60); - curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); if (defined('_CURL_HTTP_PROXY')) { curl_setopt($curl, CURLOPT_PROXY, _CURL_HTTP_PROXY);