EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
curl error
Yuri Kuznetsov683f86806f1b
diff --git a/application/Espo/Tools/Captcha/Checker.php b/application/Espo/Tools/Captcha/Checker.phpindex be9c0884de..e71eff1959 100644--- a/application/Espo/Tools/Captcha/Checker.php+++ b/application/Espo/Tools/Captcha/Checker.php@@ -80,12 +80,20 @@ class Checker$response = curl_exec($ch);- curl_close($ch);-if (!is_string($response)) {- throw new RuntimeException("Bad CURL response.");+ $message = "CURL failure.";++ $curlError = curl_error($ch);++ if ($curlError) {+ $message .= " " . $curlError;+ }++ throw new RuntimeException($message);}+ curl_close($ch);+$responseData = Json::decode($response, true);if (!is_array($responseData)) {