Version Description
Dec 29 2021 =
Comments protection fixed.
- Fix. Comments. Comments form without email field protection fixed.
- Fix. Pluggable. Is trackback checking function added.
- Fix. Exception arg. Not set the flag to the comments and trackbacks.
- Fix. Forms protection. Prevent handle the trackback request by contact_form_validate.
Download this release
Release Info
Developer | glomberg |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 5.169.1 |
Comparing to | |
See all releases |
Code changes from version 5.169 to 5.169.1
- cleantalk.php +1 -1
- inc/cleantalk-common.php +3 -2
- inc/cleantalk-pluggable.php +13 -0
- inc/cleantalk-public-integrations.php +4 -1
- inc/cleantalk-public.php +2 -2
- readme.txt +8 -1
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.169
|
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.169.1
|
8 |
Author: СleanTalk <welcome@cleantalk.org>
|
9 |
Author URI: https://cleantalk.org
|
10 |
Text Domain: cleantalk-spam-protect
|
inc/cleantalk-common.php
CHANGED
@@ -185,11 +185,12 @@ function apbct_base_call($params = array(), $reg_flag = false)
|
|
185 |
! isset($params['exception_action']) &&
|
186 |
// No need to log excluded requests on the direct integrations
|
187 |
! empty($params['post_info']['comment_type']) &&
|
188 |
-
strpos($params['post_info']['comment_type'], 'contact_form_wordpress_') === false
|
|
|
|
|
189 |
) {
|
190 |
$params['exception_action'] = 1;
|
191 |
}
|
192 |
-
|
193 |
/**
|
194 |
* Skip checking excepted requests if the "Log excluded requests" option is disabled.
|
195 |
*/
|
185 |
! isset($params['exception_action']) &&
|
186 |
// No need to log excluded requests on the direct integrations
|
187 |
! empty($params['post_info']['comment_type']) &&
|
188 |
+
strpos($params['post_info']['comment_type'], 'contact_form_wordpress_') === false &&
|
189 |
+
! preg_match('/comment$/', $params['post_info']['comment_type']) &&
|
190 |
+
! is_trackback()
|
191 |
) {
|
192 |
$params['exception_action'] = 1;
|
193 |
}
|
|
|
194 |
/**
|
195 |
* Skip checking excepted requests if the "Log excluded requests" option is disabled.
|
196 |
*/
|
inc/cleantalk-pluggable.php
CHANGED
@@ -453,6 +453,19 @@ function apbct_is_customize_preview()
|
|
453 |
return $uri && isset($uri['query']) && strpos($uri['query'], 'customize_changeset_uuid') !== false;
|
454 |
}
|
455 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
|
457 |
/**
|
458 |
* Checking if the request must be skipped.
|
453 |
return $uri && isset($uri['query']) && strpos($uri['query'], 'customize_changeset_uuid') !== false;
|
454 |
}
|
455 |
|
456 |
+
/**
|
457 |
+
* Check if the request is a direct trackback (like url_to_a_post/trackback/)
|
458 |
+
*
|
459 |
+
* @return bool
|
460 |
+
*/
|
461 |
+
function apbct_is_direct_trackback()
|
462 |
+
{
|
463 |
+
return
|
464 |
+
Server::hasString('REQUEST_URI', '/trackback') &&
|
465 |
+
isset($_POST) &&
|
466 |
+
isset($_POST['url']) && ! empty($_POST['url']) &&
|
467 |
+
isset($_POST['title']) && ! empty($_POST['title']);
|
468 |
+
}
|
469 |
|
470 |
/**
|
471 |
* Checking if the request must be skipped.
|
inc/cleantalk-public-integrations.php
CHANGED
@@ -1068,9 +1068,12 @@ function ct_preprocess_comment($comment)
|
|
1068 |
)
|
1069 |
)
|
1070 |
),
|
1071 |
-
'exception_action' => isset($is_max_comments) && $is_max_comments ? 1 : null,
|
1072 |
);
|
1073 |
|
|
|
|
|
|
|
|
|
1074 |
/**
|
1075 |
* Add honeypot_field to $base_call_data is comments__hide_website_field on
|
1076 |
*/
|
1068 |
)
|
1069 |
)
|
1070 |
),
|
|
|
1071 |
);
|
1072 |
|
1073 |
+
if ( isset($is_max_comments) && $is_max_comments ) {
|
1074 |
+
$base_call_data['exception_action'] = 1;
|
1075 |
+
}
|
1076 |
+
|
1077 |
/**
|
1078 |
* Add honeypot_field to $base_call_data is comments__hide_website_field on
|
1079 |
*/
|
inc/cleantalk-public.php
CHANGED
@@ -126,7 +126,7 @@ function apbct_init()
|
|
126 |
add_action('wp', 'ct_contact_form_validate_postdata', 1);
|
127 |
}
|
128 |
|
129 |
-
if ( $apbct->settings['forms__general_contact_forms_test'] == 1 && empty($_POST['ct_checkjs_cf7']) ) {
|
130 |
add_action('CMA_custom_post_type_nav', 'ct_contact_form_validate_postdata', 1);
|
131 |
ct_contact_form_validate();
|
132 |
if ( isset($_POST['reg_redirect_link']) && isset($_POST['tmpl_registration_nonce_field']) ) {
|
@@ -324,7 +324,7 @@ function apbct_init()
|
|
324 |
}
|
325 |
|
326 |
if ( apbct_is_user_enable() ) {
|
327 |
-
if ( $apbct->settings['forms__general_contact_forms_test'] == 1 && ! isset($_POST['comment_post_ID']) && ! isset($_GET['for']) ) {
|
328 |
add_action('init', 'ct_contact_form_validate', 999);
|
329 |
}
|
330 |
if ( apbct_is_post() &&
|
126 |
add_action('wp', 'ct_contact_form_validate_postdata', 1);
|
127 |
}
|
128 |
|
129 |
+
if ( $apbct->settings['forms__general_contact_forms_test'] == 1 && empty($_POST['ct_checkjs_cf7']) && ! apbct_is_direct_trackback() ) {
|
130 |
add_action('CMA_custom_post_type_nav', 'ct_contact_form_validate_postdata', 1);
|
131 |
ct_contact_form_validate();
|
132 |
if ( isset($_POST['reg_redirect_link']) && isset($_POST['tmpl_registration_nonce_field']) ) {
|
324 |
}
|
325 |
|
326 |
if ( apbct_is_user_enable() ) {
|
327 |
+
if ( $apbct->settings['forms__general_contact_forms_test'] == 1 && ! isset($_POST['comment_post_ID']) && ! isset($_GET['for']) && ! apbct_is_direct_trackback() ) {
|
328 |
add_action('init', 'ct_contact_form_validate', 999);
|
329 |
}
|
330 |
if ( apbct_is_post() &&
|
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.8
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 5.169
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
@@ -595,6 +595,13 @@ If your website has forms that send data to external sources, you can enable opt
|
|
595 |
|
596 |
== Changelog ==
|
597 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
= 5.169 Dec 28 2021 =
|
599 |
#### Improved compatibility with Varnish cache, visible_fields cookies fixed and some minor issues fixed.
|
600 |
* New. Options. Set cookie option "Auto" mode added.
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 5.169.1
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
595 |
|
596 |
== Changelog ==
|
597 |
|
598 |
+
= 5.169.1 Dec 29 2021 =
|
599 |
+
#### Comments protection fixed.
|
600 |
+
* Fix. Comments. Comments form without email field protection fixed.
|
601 |
+
* Fix. Pluggable. Is trackback checking function added.
|
602 |
+
* Fix. Exception arg. Not set the flag to the comments and trackbacks.
|
603 |
+
* Fix. Forms protection. Prevent handle the trackback request by contact_form_validate.
|
604 |
+
|
605 |
= 5.169 Dec 28 2021 =
|
606 |
#### Improved compatibility with Varnish cache, visible_fields cookies fixed and some minor issues fixed.
|
607 |
* New. Options. Set cookie option "Auto" mode added.
|