Version Description
Feb 09 2022 =
Minor issue fixed.
- Fix. Comments/Users checker. Date ranges validation fixed.
Download this release
Release Info
Developer | glomberg |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 5.171.2 |
Comparing to | |
See all releases |
Code changes from version 5.171.1 to 5.171.2
cleantalk.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Anti-Spam by CleanTalk
|
5 |
Plugin URI: https://cleantalk.org
|
6 |
Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms.
|
7 |
-
Version: 5.171.
|
8 |
Author: СleanTalk <welcome@cleantalk.org>
|
9 |
Author URI: https://cleantalk.org
|
10 |
Text Domain: cleantalk-spam-protect
|
4 |
Plugin Name: Anti-Spam by CleanTalk
|
5 |
Plugin URI: https://cleantalk.org
|
6 |
Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms.
|
7 |
+
Version: 5.171.2
|
8 |
Author: СleanTalk <welcome@cleantalk.org>
|
9 |
Author URI: https://cleantalk.org
|
10 |
Text Domain: cleantalk-spam-protect
|
lib/Cleantalk/ApbctWP/FindSpam/Checker.php
CHANGED
@@ -102,8 +102,8 @@ abstract class Checker
|
|
102 |
$dates_from = $dates_till = '';
|
103 |
|
104 |
if (
|
105 |
-
preg_match('
|
106 |
-
preg_match('
|
107 |
) {
|
108 |
$dates_from = Cookie::get('ct_' . $this->page_slug . '_dates_from');
|
109 |
$dates_till = Cookie::get('ct_' . $this->page_slug . '_dates_till');
|
102 |
$dates_from = $dates_till = '';
|
103 |
|
104 |
if (
|
105 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', Cookie::get('ct_' . $this->page_slug . '_dates_from')) &&
|
106 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', Cookie::get('ct_' . $this->page_slug . '_dates_till'))
|
107 |
) {
|
108 |
$dates_from = Cookie::get('ct_' . $this->page_slug . '_dates_from');
|
109 |
$dates_till = Cookie::get('ct_' . $this->page_slug . '_dates_till');
|
lib/Cleantalk/ApbctWP/FindSpam/CommentsChecker.php
CHANGED
@@ -20,8 +20,8 @@ class CommentsChecker extends Checker
|
|
20 |
$prev_check_from = $prev_check_till = '';
|
21 |
if (
|
22 |
! empty($prev_check['from']) && ! empty($prev_check['till']) &&
|
23 |
-
preg_match('
|
24 |
-
preg_match('
|
25 |
) {
|
26 |
$prev_check_from = $prev_check['from'];
|
27 |
$prev_check_till = $prev_check['till'];
|
20 |
$prev_check_from = $prev_check_till = '';
|
21 |
if (
|
22 |
! empty($prev_check['from']) && ! empty($prev_check['till']) &&
|
23 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', $prev_check['from']) &&
|
24 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', $prev_check['till'])
|
25 |
) {
|
26 |
$prev_check_from = $prev_check['from'];
|
27 |
$prev_check_till = $prev_check['till'];
|
lib/Cleantalk/ApbctWP/FindSpam/UsersChecker.php
CHANGED
@@ -19,8 +19,8 @@ class UsersChecker extends Checker
|
|
19 |
$prev_check_from = $prev_check_till = '';
|
20 |
if (
|
21 |
! empty($prev_check['from']) && ! empty($prev_check['till']) &&
|
22 |
-
preg_match('
|
23 |
-
preg_match('
|
24 |
) {
|
25 |
$prev_check_from = $prev_check['from'];
|
26 |
$prev_check_till = $prev_check['till'];
|
@@ -377,8 +377,8 @@ class UsersChecker extends Checker
|
|
377 |
|
378 |
if ( isset($_POST['from']) && isset($_POST['till']) ) {
|
379 |
if (
|
380 |
-
preg_match('
|
381 |
-
preg_match('
|
382 |
) {
|
383 |
$from = date('Y-m-d', intval(strtotime($_POST['from']))) . ' 00:00:00';
|
384 |
$till = date('Y-m-d', intval(strtotime($_POST['till']))) . ' 23:59:59';
|
19 |
$prev_check_from = $prev_check_till = '';
|
20 |
if (
|
21 |
! empty($prev_check['from']) && ! empty($prev_check['till']) &&
|
22 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', $prev_check['from']) &&
|
23 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', $prev_check['till'])
|
24 |
) {
|
25 |
$prev_check_from = $prev_check['from'];
|
26 |
$prev_check_till = $prev_check['till'];
|
377 |
|
378 |
if ( isset($_POST['from']) && isset($_POST['till']) ) {
|
379 |
if (
|
380 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', $_POST['from']) &&
|
381 |
+
preg_match('/^[a-zA-Z]{3}\s{1}\d{1,2}\s{1}\d{4}$/', $_POST['till'])
|
382 |
) {
|
383 |
$from = date('Y-m-d', intval(strtotime($_POST['from']))) . ' 00:00:00';
|
384 |
$till = date('Y-m-d', intval(strtotime($_POST['till']))) . ' 23:59:59';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: spam, antispam, anti-spam, comments, firewall
|
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 5.171.
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
@@ -594,6 +594,10 @@ If your website has forms that send data to external sources, you can enable opt
|
|
594 |
|
595 |
== Changelog ==
|
596 |
|
|
|
|
|
|
|
|
|
597 |
= 5.171.1 Feb 09 2022 =
|
598 |
#### XML-RPC requests excluded and minor issues fixed.
|
599 |
* Fix: Excluded standard WordPress search form from apbct-public.min.js
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 5.171.2
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
594 |
|
595 |
== Changelog ==
|
596 |
|
597 |
+
= 5.171.2 Feb 09 2022 =
|
598 |
+
#### Minor issue fixed.
|
599 |
+
* Fix. Comments/Users checker. Date ranges validation fixed.
|
600 |
+
|
601 |
= 5.171.1 Feb 09 2022 =
|
602 |
#### XML-RPC requests excluded and minor issues fixed.
|
603 |
* Fix: Excluded standard WordPress search form from apbct-public.min.js
|