From 9f4f38bb0d97d77dab1f85c5e8d1fb5289145693 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 16 Jul 2020 19:50:53 +0300 Subject: [PATCH] webhook verify peer --- application/Espo/Core/Webhook/Sender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Core/Webhook/Sender.php b/application/Espo/Core/Webhook/Sender.php index a4c35ae8e5..6645b6cc6f 100644 --- a/application/Espo/Core/Webhook/Sender.php +++ b/application/Espo/Core/Webhook/Sender.php @@ -67,7 +67,7 @@ class Sender $handler = curl_init($webhook->get('url')); curl_setopt($handler, \CURLOPT_RETURNTRANSFER, true); curl_setopt($handler, \CURLOPT_FOLLOWLOCATION, true); - curl_setopt($handler, \CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($handler, \CURLOPT_SSL_VERIFYPEER, true); curl_setopt($handler, \CURLOPT_HEADER, true); curl_setopt($handler, \CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($handler, \CURLOPT_CONNECTTIMEOUT, $connectTimeout);