From 3ad35562c4cf59418f3b99dbff62d370902a4e64 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Fri, 31 Mar 2023 13:16:27 +0800 Subject: [PATCH] * Fix bug #33382. --- lib/feishuapi/feishuapi.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/feishuapi/feishuapi.class.php b/lib/feishuapi/feishuapi.class.php index e295dd12ea..89c84a3150 100644 --- a/lib/feishuapi/feishuapi.class.php +++ b/lib/feishuapi/feishuapi.class.php @@ -265,7 +265,7 @@ class feishuapi curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); - if($_SERVER['HTTPS'] != 'on') + if(!isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] != 'on') { curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);