]> git.wh0rd.org - tt-rss.git/commitdiff
curl: let's verify ssl peers
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 17 Aug 2015 04:53:50 +0000 (07:53 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 17 Aug 2015 04:53:50 +0000 (07:53 +0300)
include/functions.php
include/functions2.php

index d68f6bf106a6882a4a59c9de6da4c2d9441cd1cb..310081485ec2d097c8984c6987cecaf7f96e5481 100644 (file)
                        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);
index b4018453ebd6413a108002ec95a5d4a8e80b42ee..6a83a44f288b0b8c57ece96f19c7149bb6db9714 100644 (file)
                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);