NinjaFirewall (WP Edition) - Version 3.8.1

Version Description

  • Fixed a potential issue where the firewall configuration could be corrupted when attempting to restore a backup from the Firewall Options page right after updating to version 3.8.
Download this release

Release Info

Developer nintechnet
Plugin Icon 128x128 NinjaFirewall (WP Edition)
Version 3.8.1
Comparing to
See all releases

Code changes from version 3.8 to 3.8.1

Files changed (3) hide show
  1. lib/init_update.php +4 -4
  2. ninjafirewall.php +2 -2
  3. readme.txt +5 -1
lib/init_update.php CHANGED
@@ -82,15 +82,15 @@ if (! empty($nfw_options['engine_version']) && version_compare($nfw_options['eng
82
  foreach( $glob as $file ) {
83
  $data = file_get_contents( $file );
84
  list ( $options, $rules, $bf ) = @explode("\n:-:\n", $data . "\n:-:\n");
85
- $nfw_options = @unserialize( $options );
86
- $nfw_rules = @unserialize( $rules );
87
  if (! empty( $bf ) ) {
88
  $bf_conf = @unserialize( $bf );
89
  } else {
90
  $bf_conf = '';
91
  }
92
- if ( $nfw_options !== false && $nfw_rules !== false ) {
93
- $data = json_encode( $nfw_options ) ."\n:-:\n". json_encode( $nfw_rules ) ."\n:-:\n". $bf_conf;
94
  file_put_contents( $file, $data );
95
  }
96
  }
82
  foreach( $glob as $file ) {
83
  $data = file_get_contents( $file );
84
  list ( $options, $rules, $bf ) = @explode("\n:-:\n", $data . "\n:-:\n");
85
+ $array_options = @unserialize( $options );
86
+ $array_rules = @unserialize( $rules );
87
  if (! empty( $bf ) ) {
88
  $bf_conf = @unserialize( $bf );
89
  } else {
90
  $bf_conf = '';
91
  }
92
+ if ( $array_options !== false && $array_rules !== false ) {
93
+ $data = json_encode( $array_options ) ."\n:-:\n". json_encode( $array_rules ) ."\n:-:\n". $bf_conf;
94
  file_put_contents( $file, $data );
95
  }
96
  }
ninjafirewall.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: NinjaFirewall (WP Edition)
4
  Plugin URI: https://nintechnet.com/
5
  Description: A true Web Application Firewall to protect and secure WordPress.
6
- Version: 3.8
7
  Author: The Ninja Technologies Network
8
  Author URI: https://nintechnet.com/
9
  License: GPLv3 or later
@@ -19,7 +19,7 @@ Domain Path: /languages
19
  | (c) NinTechNet - https://nintechnet.com/ |
20
  +---------------------------------------------------------------------+
21
  */
22
- define( 'NFW_ENGINE_VERSION', '3.8' );
23
  /*
24
  +---------------------------------------------------------------------+
25
  | This program is free software: you can redistribute it and/or |
3
  Plugin Name: NinjaFirewall (WP Edition)
4
  Plugin URI: https://nintechnet.com/
5
  Description: A true Web Application Firewall to protect and secure WordPress.
6
+ Version: 3.8.1
7
  Author: The Ninja Technologies Network
8
  Author URI: https://nintechnet.com/
9
  License: GPLv3 or later
19
  | (c) NinTechNet - https://nintechnet.com/ |
20
  +---------------------------------------------------------------------+
21
  */
22
+ define( 'NFW_ENGINE_VERSION', '3.8.1' );
23
  /*
24
  +---------------------------------------------------------------------+
25
  | This program is free software: you can redistribute it and/or |
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: nintechnet, bruandet
3
  Tags: security, firewall, malware, antispam, virus, scanner, hacked site, brute force, seguridad, seguranca, sicherheit, sicurezza, veiligheid
4
  Requires at least: 3.7
5
  Tested up to: 5.0
6
- Stable tag: 3.8
7
  Requires PHP: 5.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -199,6 +199,10 @@ NinjaFirewall works on Unix-like servers only. There is no Microsoft Windows ver
199
 
200
  == Changelog ==
201
 
 
 
 
 
202
  = 3.8 =
203
 
204
  * A lot of code was cleaned-up, fixed and improved as well as the whole files structure of the plugin.
3
  Tags: security, firewall, malware, antispam, virus, scanner, hacked site, brute force, seguridad, seguranca, sicherheit, sicurezza, veiligheid
4
  Requires at least: 3.7
5
  Tested up to: 5.0
6
+ Stable tag: 3.8.1
7
  Requires PHP: 5.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
199
 
200
  == Changelog ==
201
 
202
+ = 3.8.1 =
203
+
204
+ * Fixed a potential issue where the firewall configuration could be corrupted when attempting to restore a backup from the Firewall Options page right after updating to version 3.8.
205
+
206
  = 3.8 =
207
 
208
  * A lot of code was cleaned-up, fixed and improved as well as the whole files structure of the plugin.