Skip to content

Commit

Permalink
New: Exclusions by wed form ID fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Mar 26, 2020
1 parent 0498af6 commit e591db9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cleantalk.antispam/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,14 @@ public function OnPageStartHandler()
{
return;
}


// Exclusion for web-forms ID
$ct_webform= COption::GetOptionString('cleantalk.antispam', 'web_form', '0');
$webforms_id_checking = CleantalkCustomConfig::get_webforms_ids();
if ($ct_webform == 1 && $webforms_id_checking && is_array($webforms_id_checking) && count($webforms_id_checking) > 0 && isset($_POST['WEB_FORM_ID']))
if (in_array($_POST['WEB_FORM_ID'], $webforms_id_checking))
return;

$ct_temp_msg_data = CleantalkAntispam::CleantalkGetFields($_POST); //Works via links need to be fixed

if ($ct_temp_msg_data === null)
Expand Down

0 comments on commit e591db9

Please sign in to comment.