Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.116.2

Version Description

March 7 2019 = * Fix: Creating tables in MariaDB.

Download this release

Release Info

Developer Safronik
Plugin Icon 128x128 Spam protection, AntiSpam, FireWall by CleanTalk
Version 5.116.2
Comparing to
See all releases

Code changes from version 5.116.1 to 5.116.2

cleantalk.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://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.116.1
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
@@ -494,8 +494,8 @@ function apbct_activation( $network ) {
494
  $session_table = 'CREATE TABLE IF NOT EXISTS `%s` (
495
  `id` VARCHAR(64) NOT NULL,
496
  `name` TEXT NOT NULL,
497
- `value` TEXT NULL,
498
- `last_update` DATETIME NOT NULL DEFAULT NOW(),
499
  PRIMARY KEY (`id`, `name`(10)))
500
  ENGINE = MYISAM;';
501
 
@@ -560,8 +560,8 @@ function apbct_activation__new_blog($blog_id, $user_id, $domain, $path, $site_id
560
  $session__query = 'CREATE TABLE IF NOT EXISTS `%s` (
561
  `id` VARCHAR(64) NOT NULL,
562
  `name` TEXT NOT NULL,
563
- `value` TEXT NULL,
564
- `last_update` DATETIME NOT NULL DEFAULT NOW(),
565
  PRIMARY KEY (`id`))
566
  ENGINE = MYISAM;';
567
 
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://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.116.2
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
494
  $session_table = 'CREATE TABLE IF NOT EXISTS `%s` (
495
  `id` VARCHAR(64) NOT NULL,
496
  `name` TEXT NOT NULL,
497
+ `value` TEXT NULL DEFAULT NULL,
498
+ `last_update` DATETIME NULL DEFAULT NULL,
499
  PRIMARY KEY (`id`, `name`(10)))
500
  ENGINE = MYISAM;';
501
 
560
  $session__query = 'CREATE TABLE IF NOT EXISTS `%s` (
561
  `id` VARCHAR(64) NOT NULL,
562
  `name` TEXT NOT NULL,
563
+ `value` TEXT NULL DEFAULT NULL,
564
+ `last_update` DATETIME NULL DEFAULT NULL,
565
  PRIMARY KEY (`id`))
566
  ENGINE = MYISAM;';
567
 
inc/cleantalk-public.php CHANGED
@@ -2510,7 +2510,9 @@ function ct_contact_form_validate() {
2510
  isset($_POST['slm_action'], $_POST['license_key'], $_POST['secret_key'], $_POST['registered_domain']) || // ticket_id=9122
2511
  (isset($_POST['wpforms']['submit']) && $_POST['wpforms']['submit'] == 'wpforms-submit') || // WPForms
2512
  (isset($_POST['action']) && $_POST['action'] == 'grunion-contact-form') || // JetPack
2513
- (isset($_POST['action']) && $_POST['action'] == 'bbp-update-user') //BBP update user info page
 
 
2514
  ) {
2515
  return null;
2516
  }
2510
  isset($_POST['slm_action'], $_POST['license_key'], $_POST['secret_key'], $_POST['registered_domain']) || // ticket_id=9122
2511
  (isset($_POST['wpforms']['submit']) && $_POST['wpforms']['submit'] == 'wpforms-submit') || // WPForms
2512
  (isset($_POST['action']) && $_POST['action'] == 'grunion-contact-form') || // JetPack
2513
+ (isset($_POST['action']) && $_POST['action'] == 'bbp-update-user') || //BBP update user info page
2514
+ (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'],'?wc-api=WC_Gateway_Transferuj') !== false) || //WC Gateway
2515
+ (isset($_GET['mbr'], $_GET['amp;appname'], $_GET['amp;master'])) // ticket_id=10773
2516
  ) {
2517
  return null;
2518
  }
inc/cleantalk-updater.php CHANGED
@@ -172,7 +172,7 @@ function apbct_update_to_5_116_0(){
172
  `id` VARCHAR(64) NOT NULL,
173
  `name` TEXT NOT NULL,
174
  `value` TEXT NULL,
175
- `last_update` DATETIME NOT NULL DEFAULT NOW(),
176
  PRIMARY KEY (`id`, `name`(10)))
177
  ENGINE = MYISAM;'
178
  );
@@ -186,7 +186,21 @@ function apbct_update_to_5_116_1(){
186
  `id` VARCHAR(64) NOT NULL,
187
  `name` TEXT NOT NULL,
188
  `value` TEXT NULL,
189
- `last_update` DATETIME NOT NULL DEFAULT NOW(),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  PRIMARY KEY (`id`, `name`(10)))
191
  ENGINE = MYISAM;'
192
  );
172
  `id` VARCHAR(64) NOT NULL,
173
  `name` TEXT NOT NULL,
174
  `value` TEXT NULL,
175
+ `last_update` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
176
  PRIMARY KEY (`id`, `name`(10)))
177
  ENGINE = MYISAM;'
178
  );
186
  `id` VARCHAR(64) NOT NULL,
187
  `name` TEXT NOT NULL,
188
  `value` TEXT NULL,
189
+ `last_update` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
190
+ PRIMARY KEY (`id`, `name`(10)))
191
+ ENGINE = MYISAM;'
192
+ );
193
+ }
194
+
195
+ function apbct_update_to_5_116_2(){
196
+
197
+ global $wpdb;
198
+
199
+ $wpdb->query('CREATE TABLE IF NOT EXISTS `'. APBCT_TBL_SESSIONS .'` (
200
+ `id` VARCHAR(64) NOT NULL,
201
+ `name` TEXT NOT NULL,
202
+ `value` TEXT NULL DEFAULT NULL,
203
+ `last_update` DATETIME NULL DEFAULT NULL,
204
  PRIMARY KEY (`id`, `name`(10)))
205
  ENGINE = MYISAM;'
206
  );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: safronik
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.1
6
- Stable tag: 5.116.1
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
@@ -558,6 +558,9 @@ If your website has forms that send data to external sources, you can enable opt
558
  10. Website's options.
559
 
560
  == Changelog ==
 
 
 
561
  = 5.116.1 March 6 2019 =
562
  * Fix: Creating tables in DB.
563
  * Fix: PHP Warning in spam statistics widget.
@@ -1812,6 +1815,9 @@ If your website has forms that send data to external sources, you can enable opt
1812
  * First version
1813
 
1814
  == Upgrade Notice ==
 
 
 
1815
  = 5.116.1 March 6 2019 =
1816
  * Fix: Creating tables in DB.
1817
  * Fix: PHP Warning in spam statistics widget.
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 5.1
6
+ Stable tag: 5.116.2
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
558
  10. Website's options.
559
 
560
  == Changelog ==
561
+ = 5.116.2 March 7 2019 =
562
+ * Fix: Creating tables in MariaDB.
563
+
564
  = 5.116.1 March 6 2019 =
565
  * Fix: Creating tables in DB.
566
  * Fix: PHP Warning in spam statistics widget.
1815
  * First version
1816
 
1817
  == Upgrade Notice ==
1818
+ = 5.116.2 March 7 2019 =
1819
+ * Fix: Creating tables in MariaDB.
1820
+
1821
  = 5.116.1 March 6 2019 =
1822
  * Fix: Creating tables in DB.
1823
  * Fix: PHP Warning in spam statistics widget.