Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.67.2

Version Description

June 5 2017 = * Fixed error with IP determination.

Download this release

Release Info

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

Code changes from version 5.67.1 to 5.67.2

Files changed (3) hide show
  1. cleantalk.php +3 -3
  2. inc/cleantalk.class.php +2 -2
  3. readme.txt +7 -1
cleantalk.php CHANGED
@@ -3,12 +3,12 @@
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. Formerly Anti-Spam by CleanTalk.
6
- Version: 5.67.1
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
- $cleantalk_plugin_version='5.67.1';
11
- $ct_agent_version = 'wordpress-5671';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
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. Formerly Anti-Spam by CleanTalk.
6
+ Version: 5.67.2
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
+ $cleantalk_plugin_version='5.67.2';
11
+ $ct_agent_version = 'wordpress-5672';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
inc/cleantalk.class.php CHANGED
@@ -1212,10 +1212,10 @@ function cleantalk_get_real_ip(){
1212
  // Getting IP for validating
1213
  if (array_key_exists( 'X-Forwarded-For', $headers )){
1214
  $ip = explode(",", trim($headers['X-Forwarded-For']));
1215
- $ip = trim($the_ip[0]);
1216
  }elseif(array_key_exists( 'HTTP_X_FORWARDED_FOR', $headers)){
1217
  $ip = explode(",", trim($headers['HTTP_X_FORWARDED_FOR']));
1218
- $ip = trim($the_ip[0]);
1219
  }else{
1220
  $ip = $_SERVER['REMOTE_ADDR'];
1221
  }
1212
  // Getting IP for validating
1213
  if (array_key_exists( 'X-Forwarded-For', $headers )){
1214
  $ip = explode(",", trim($headers['X-Forwarded-For']));
1215
+ $ip = trim($ip[0]);
1216
  }elseif(array_key_exists( 'HTTP_X_FORWARDED_FOR', $headers)){
1217
  $ip = explode(",", trim($headers['HTTP_X_FORWARDED_FOR']));
1218
+ $ip = trim($ip[0]);
1219
  }else{
1220
  $ip = $_SERVER['REMOTE_ADDR'];
1221
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: znaeff, shagimuratov, serge00, sartemd174, amagsumov
3
  Tags: antispam, protection, contact form, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
- Stable tag: 5.67.1
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
@@ -501,6 +501,9 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
501
  1. The Dashboard with a map of most spam active countries per your account.
502
 
503
  == Changelog ==
 
 
 
504
  = 5.67.1 June 4 2017 =
505
  * Fixed JS error in 5.67 version.
506
  * Integrations: Enfold theme, Convertplug.
@@ -1358,6 +1361,9 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
1358
  * First version
1359
 
1360
  == Upgrade Notice ==
 
 
 
1361
  = 5.67.1 June 4 2017 =
1362
  * Fixed JS error in 5.67 version.
1363
  * Integrations: Enfold theme, Convertplug.
3
  Tags: antispam, protection, contact form, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
+ Stable tag: 5.67.2
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
501
  1. The Dashboard with a map of most spam active countries per your account.
502
 
503
  == Changelog ==
504
+ = 5.67.2 June 5 2017 =
505
+ * Fixed error with IP determination.
506
+
507
  = 5.67.1 June 4 2017 =
508
  * Fixed JS error in 5.67 version.
509
  * Integrations: Enfold theme, Convertplug.
1361
  * First version
1362
 
1363
  == Upgrade Notice ==
1364
+ = 5.67.2 June 5 2017 =
1365
+ * Fixed error with IP determination.
1366
+
1367
  = 5.67.1 June 4 2017 =
1368
  * Fixed JS error in 5.67 version.
1369
  * Integrations: Enfold theme, Convertplug.