Skip to content

Commit

Permalink
Fix: skip empty email requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ardavydov committed Aug 9, 2021
1 parent 24a900b commit a529385
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cleantalk.antispam/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit a529385

Please sign in to comment.