Version Description
Feb 25 2021 = * Fix: Security. Preparing UA string for writing to the DB.
Download this release
Release Info
Developer | glomberg |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 5.153.3 |
Comparing to | |
See all releases |
Code changes from version 5.153.2 to 5.153.3
- cleantalk.php +1 -1
- lib/Cleantalk/ApbctWP/Firewall/SFW.php +3 -3
- readme.txt +5 -2
cleantalk.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Anti-Spam by CleanTalk
|
4 |
Plugin URI: https://cleantalk.org
|
5 |
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.
|
6 |
-
Version: 5.153.
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: https://cleantalk.org
|
9 |
Text Domain: cleantalk-spam-protect
|
3 |
Plugin Name: Anti-Spam by CleanTalk
|
4 |
Plugin URI: https://cleantalk.org
|
5 |
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.
|
6 |
+
Version: 5.153.3
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: https://cleantalk.org
|
9 |
Text Domain: cleantalk-spam-protect
|
lib/Cleantalk/ApbctWP/Firewall/SFW.php
CHANGED
@@ -175,14 +175,14 @@ class SFW extends \Cleantalk\Common\Firewall\FirewallModule {
|
|
175 |
all_entries = 1,
|
176 |
blocked_entries = " . ( strpos( $status, 'DENY' ) !== false ? 1 : 0 ) . ",
|
177 |
entries_timestamp = '" . $time . "',
|
178 |
-
ua_name = '" . Server::get('HTTP_USER_AGENT') . "'
|
179 |
ON DUPLICATE KEY
|
180 |
UPDATE
|
181 |
status = '$status',
|
182 |
all_entries = all_entries + 1,
|
183 |
blocked_entries = blocked_entries" . ( strpos( $status, 'DENY' ) !== false ? ' + 1' : '' ) . ",
|
184 |
entries_timestamp = '" . intval( $time ) . "',
|
185 |
-
ua_name = '" . Server::get('HTTP_USER_AGENT') . "'";
|
186 |
|
187 |
$this->db->execute( $query );
|
188 |
}
|
@@ -350,7 +350,7 @@ class SFW extends \Cleantalk\Common\Firewall\FirewallModule {
|
|
350 |
if( empty( $result['error'] ) ){
|
351 |
if( $result['rows'] == count( $data ) ){
|
352 |
$db->execute( "TRUNCATE TABLE " . $log_table . ";" );
|
353 |
-
|
354 |
return $result;
|
355 |
}
|
356 |
|
175 |
all_entries = 1,
|
176 |
blocked_entries = " . ( strpos( $status, 'DENY' ) !== false ? 1 : 0 ) . ",
|
177 |
entries_timestamp = '" . $time . "',
|
178 |
+
ua_name = '" . sanitize_text_field( Server::get('HTTP_USER_AGENT') ) . "'
|
179 |
ON DUPLICATE KEY
|
180 |
UPDATE
|
181 |
status = '$status',
|
182 |
all_entries = all_entries + 1,
|
183 |
blocked_entries = blocked_entries" . ( strpos( $status, 'DENY' ) !== false ? ' + 1' : '' ) . ",
|
184 |
entries_timestamp = '" . intval( $time ) . "',
|
185 |
+
ua_name = '" . sanitize_text_field( Server::get('HTTP_USER_AGENT') ) . "'";
|
186 |
|
187 |
$this->db->execute( $query );
|
188 |
}
|
350 |
if( empty( $result['error'] ) ){
|
351 |
if( $result['rows'] == count( $data ) ){
|
352 |
$db->execute( "TRUNCATE TABLE " . $log_table . ";" );
|
353 |
+
|
354 |
return $result;
|
355 |
}
|
356 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: safronik
|
3 |
Tags: spam, antispam, anti-spam, comments, firewall
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 5.153.
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
@@ -580,6 +580,9 @@ If your website has forms that send data to external sources, you can enable opt
|
|
580 |
|
581 |
== Changelog ==
|
582 |
|
|
|
|
|
|
|
583 |
= 5.153.2 Feb 25 2021 =
|
584 |
* Fix: Integration. Registration on WICITY theme.
|
585 |
* Fix: Integration. Registration on Paid Memberships Pro
|
2 |
Contributors: safronik
|
3 |
Tags: spam, antispam, anti-spam, comments, firewall
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 5.7
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 5.153.3
|
8 |
License: GPLv2
|
9 |
|
10 |
Spam protection, anti-spam, firewall, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
580 |
|
581 |
== Changelog ==
|
582 |
|
583 |
+
= 5.153.3 Feb 25 2021 =
|
584 |
+
* Fix: Security. Preparing UA string for writing to the DB.
|
585 |
+
|
586 |
= 5.153.2 Feb 25 2021 =
|
587 |
* Fix: Integration. Registration on WICITY theme.
|
588 |
* Fix: Integration. Registration on Paid Memberships Pro
|