Version Description
- Fixed potential "session_status()" error with old PHP installations.
Download this release
Release Info
Developer | nintechnet |
Plugin | NinjaFirewall (WP Edition) |
Version | 3.6.4 |
Comparing to | |
See all releases |
Code changes from version 3.6.3 to 3.6.4
- ninjafirewall.php +10 -5
- readme.txt +5 -1
- uninstall.php +8 -3
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.6.
|
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.6.
|
23 |
/*
|
24 |
+---------------------------------------------------------------------+
|
25 |
| This program is free software: you can redistribute it and/or |
|
@@ -37,9 +37,14 @@ define( 'NFW_ENGINE_VERSION', '3.6.3' );
|
|
37 |
if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); }
|
38 |
|
39 |
if (! headers_sent() ) {
|
40 |
-
if (
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
}
|
45 |
|
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.6.4
|
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.6.4' );
|
23 |
/*
|
24 |
+---------------------------------------------------------------------+
|
25 |
| This program is free software: you can redistribute it and/or |
|
37 |
if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); }
|
38 |
|
39 |
if (! headers_sent() ) {
|
40 |
+
if (version_compare(PHP_VERSION, '5.4', '<') ) {
|
41 |
+
if (! session_id() ) {
|
42 |
+
session_start();
|
43 |
+
}
|
44 |
+
} else {
|
45 |
+
if (session_status() !== PHP_SESSION_ACTIVE) {
|
46 |
+
session_start();
|
47 |
+
}
|
48 |
}
|
49 |
}
|
50 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: nintechnet, bruandet
|
|
3 |
Tags: firewall, security, WAF, antivirus, brute force, protection, malware, admin, attack, backdoor, botnet, bruteforce, brute-force, hack, hhvm, infection, injection, login, nginx, nintechnet, ninjafirewall, palomuuri, pare-feu, phishing, prevention, proxy, sécurité, sécuriser, seguridad, seguranca, sicherheit, sicurezza, veiligheid, shellshock, soaksoak, sqli, trojan, user enumeration, virus, Web application firewall, widget, wp-login, XML-RPC, xmlrpc, XSS
|
4 |
Requires at least: 3.3.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 3.6.
|
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.6.3 =
|
203 |
|
204 |
* Added the "Referrer-Policy" header (see "Firewall Policies > Advanced Policies > HTTP response headers").
|
3 |
Tags: firewall, security, WAF, antivirus, brute force, protection, malware, admin, attack, backdoor, botnet, bruteforce, brute-force, hack, hhvm, infection, injection, login, nginx, nintechnet, ninjafirewall, palomuuri, pare-feu, phishing, prevention, proxy, sécurité, sécuriser, seguridad, seguranca, sicherheit, sicurezza, veiligheid, shellshock, soaksoak, sqli, trojan, user enumeration, virus, Web application firewall, widget, wp-login, XML-RPC, xmlrpc, XSS
|
4 |
Requires at least: 3.3.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 3.6.4
|
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.6.4 =
|
203 |
+
|
204 |
+
* Fixed potential "session_status()" error with old PHP installations.
|
205 |
+
|
206 |
= 3.6.3 =
|
207 |
|
208 |
* Added the "Referrer-Policy" header (see "Firewall Policies > Advanced Policies > HTTP response headers").
|
uninstall.php
CHANGED
@@ -22,9 +22,14 @@ if (! defined('WP_UNINSTALL_PLUGIN') ) {
|
|
22 |
}
|
23 |
|
24 |
if (! headers_sent() ) {
|
25 |
-
if (
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
}
|
30 |
|
22 |
}
|
23 |
|
24 |
if (! headers_sent() ) {
|
25 |
+
if (version_compare(PHP_VERSION, '5.4', '<') ) {
|
26 |
+
if (! session_id() ) {
|
27 |
+
session_start();
|
28 |
+
}
|
29 |
+
} else {
|
30 |
+
if (session_status() !== PHP_SESSION_ACTIVE) {
|
31 |
+
session_start();
|
32 |
+
}
|
33 |
}
|
34 |
}
|
35 |
|