Skip to content

Commit

Permalink
Update spam_protection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis authored Jan 24, 2022
1 parent 87c27e6 commit 2787bf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/yform/value/spam_protection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ public function postValidateAction(): void
$ip_whitelist = explode(',', $config_ip_whitelist);
}

if ($debug) {
rex_sql::factory()->setDebug($debug)->setQuery("DELETE FROM rex_tmp_yform_spam_protection_frequency WHERE createdate < (NOW() - INTERVAL ".rex_config::get('yform_spam_protection', 'ip_block_timer')." SECOND)");
}
rex_sql::factory()->setDebug($debug)->setQuery("DELETE FROM rex_tmp_yform_spam_protection_frequency WHERE createdate < (NOW() - INTERVAL ".rex_config::get('yform_spam_protection', 'ip_block_timer')." SECOND)");


$log = [];

Expand Down

0 comments on commit 2787bf5

Please sign in to comment.