From 53902ee878396e0e41f01ae472d4f132aa47ff89 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Thu, 20 Feb 2020 06:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96https=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helper.php b/app/helper.php index c0854b2..acd6399 100644 --- a/app/helper.php +++ b/app/helper.php @@ -149,7 +149,7 @@ function download($url, $cookies='', $useragent='', $method = 'GET') if ($method === 'POST') { curl_setopt($ch, CURLOPT_POST, true); } - if (stripos($url, 'https://') !== false) { + if (stripos($url, 'https://') === 0) { curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSLVERSION, 1);