From a5293858e6e19710ac0fb906f8206597954aa33e Mon Sep 17 00:00:00 2001 From: Artem Davydov Date: Mon, 9 Aug 2021 14:13:53 +0500 Subject: [PATCH] Fix: skip empty email requests. --- cleantalk.antispam/include.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cleantalk.antispam/include.php b/cleantalk.antispam/include.php index 2e811f2..de13de0 100644 --- a/cleantalk.antispam/include.php +++ b/cleantalk.antispam/include.php @@ -1315,6 +1315,9 @@ static function CheckAllBefore(&$arEntity, $bSendEmail = FALSE, $form_errors = n )); return; } + if (isset($arEntity['sender_email']) && empty($arEntity['sender_email']) && COption::GetOptionInt('cleantalk.antispam', 'form_global_check_without_email', 0) != 1) { + return; + } $cleantalk_site_exclusions = COption::GetOptionString('cleantalk.antispam', 'site_exclusions', ''); if (!empty($cleantalk_site_exclusions)) {