Version Description
- Fix issue: Fixed the fatal error under certain condition.
Download this release
Release Info
Developer | tokkonopapa |
Plugin | IP Geo Block |
Version | 3.0.17.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.17.1 to 3.0.17.2
- README.txt +4 -1
- classes/class-ip-geo-block.php +8 -8
- ip-geo-block.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: security, firewall, brute force, vulnerability, login, wp-admin, admin, ajax, xmlrpc, comment, pingback, trackback, spam, IP address, geo, geolocation, buddypress, bbPress
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 5.0.2
|
7 |
-
Stable tag: 3.0.17.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
@@ -234,6 +234,9 @@ Please refer to "[How can I fix permission troubles?](https://www.ipgeoblock.com
|
|
234 |
|
235 |
== Changelog ==
|
236 |
|
|
|
|
|
|
|
237 |
= 3.0.17.1 =
|
238 |
* **Fix issue:** Inadequate verification of IPv4 with some CIDR notation.
|
239 |
* **Fix issue:** Insufficient path parsing for document root and content directory when real path and symbolic link were mixtured on virtual host.
|
4 |
Tags: security, firewall, brute force, vulnerability, login, wp-admin, admin, ajax, xmlrpc, comment, pingback, trackback, spam, IP address, geo, geolocation, buddypress, bbPress
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 5.0.2
|
7 |
+
Stable tag: 3.0.17.2
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
234 |
|
235 |
== Changelog ==
|
236 |
|
237 |
+
= 3.0.17.2 =
|
238 |
+
* **Fix issue:** Fixed the fatal error under certain condition.
|
239 |
+
|
240 |
= 3.0.17.1 =
|
241 |
* **Fix issue:** Inadequate verification of IPv4 with some CIDR notation.
|
242 |
* **Fix issue:** Insufficient path parsing for document root and content directory when real path and symbolic link were mixtured on virtual host.
|
classes/class-ip-geo-block.php
CHANGED
@@ -15,7 +15,7 @@ class IP_Geo_Block {
|
|
15 |
* Unique identifier for this plugin.
|
16 |
*
|
17 |
*/
|
18 |
-
const VERSION = '3.0.17.
|
19 |
const GEOAPI_NAME = 'ip-geo-api';
|
20 |
const PLUGIN_NAME = 'ip-geo-block';
|
21 |
const OPTION_NAME = 'ip_geo_block_settings';
|
@@ -251,9 +251,9 @@ class IP_Geo_Block {
|
|
251 |
$settings = self::get_option();
|
252 |
$validate = $settings['validation'];
|
253 |
|
254 |
-
$args['sites'
|
255 |
-
$args['nonce'
|
256 |
-
$args['key'
|
257 |
|
258 |
$script = plugins_url(
|
259 |
! defined( 'IP_GEO_BLOCK_DEBUG' ) || ! IP_GEO_BLOCK_DEBUG ?
|
@@ -959,13 +959,13 @@ class IP_Geo_Block {
|
|
959 |
// allow only admin and super admin
|
960 |
if ( ! IP_Geo_Block_Util::current_user_has_caps( array( 'manage_options', 'manage_network_options' ) ) ) {
|
961 |
$time = microtime( TRUE );
|
962 |
-
$settings = self::get_option();
|
963 |
-
$cache = IP_Geo_Block_API_Cache::get_cache(
|
964 |
-
$validate = self::make_validation(
|
965 |
'result' => 'badcap',
|
966 |
'provider' => 'Cache',
|
967 |
'time' => microtime( TRUE ) - $time,
|
968 |
-
) + $cache );
|
969 |
|
970 |
// send response code to die if the current user does not have the right capability
|
971 |
$this->endof_validate( 'admin', $validate, $settings, TRUE, TRUE, FALSE );
|
15 |
* Unique identifier for this plugin.
|
16 |
*
|
17 |
*/
|
18 |
+
const VERSION = '3.0.17.2';
|
19 |
const GEOAPI_NAME = 'ip-geo-api';
|
20 |
const PLUGIN_NAME = 'ip-geo-block';
|
21 |
const OPTION_NAME = 'ip_geo_block_settings';
|
251 |
$settings = self::get_option();
|
252 |
$validate = $settings['validation'];
|
253 |
|
254 |
+
$args['sites'] = IP_Geo_Block_Util::get_sites_of_user();
|
255 |
+
$args['nonce'] = IP_Geo_Block_Util::create_nonce( self::$auth_key );
|
256 |
+
$args['key' ] = $validate['admin'] & 2 || $validate['ajax'] & 2 || $validate['plugins'] & 2 || $validate['themes'] & 2 ? self::$auth_key : FALSE;
|
257 |
|
258 |
$script = plugins_url(
|
259 |
! defined( 'IP_GEO_BLOCK_DEBUG' ) || ! IP_GEO_BLOCK_DEBUG ?
|
959 |
// allow only admin and super admin
|
960 |
if ( ! IP_Geo_Block_Util::current_user_has_caps( array( 'manage_options', 'manage_network_options' ) ) ) {
|
961 |
$time = microtime( TRUE );
|
962 |
+
$ip = self::get_ip_address( $settings = self::get_option() );
|
963 |
+
$cache = IP_Geo_Block_API_Cache::get_cache( $ip, $settings['cache_hold'] );
|
964 |
+
$validate = self::make_validation( $ip, array(
|
965 |
'result' => 'badcap',
|
966 |
'provider' => 'Cache',
|
967 |
'time' => microtime( TRUE ) - $time,
|
968 |
+
) + ( $cache ? $cache : array() ) );
|
969 |
|
970 |
// send response code to die if the current user does not have the right capability
|
971 |
$this->endof_validate( 'admin', $validate, $settings, TRUE, TRUE, FALSE );
|
ip-geo-block.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
* Plugin Name: IP Geo Block
|
14 |
* Plugin URI: https://wordpress.org/plugins/ip-geo-block/
|
15 |
* Description: It blocks any spams, login attempts and malicious access to the admin area posted from outside your nation, and also prevents zero-day exploit.
|
16 |
-
* Version: 3.0.17.
|
17 |
* Author: tokkonopapa
|
18 |
* Author URI: https://www.ipgeoblock.com/
|
19 |
* Text Domain: ip-geo-block
|
13 |
* Plugin Name: IP Geo Block
|
14 |
* Plugin URI: https://wordpress.org/plugins/ip-geo-block/
|
15 |
* Description: It blocks any spams, login attempts and malicious access to the admin area posted from outside your nation, and also prevents zero-day exploit.
|
16 |
+
* Version: 3.0.17.2
|
17 |
* Author: tokkonopapa
|
18 |
* Author URI: https://www.ipgeoblock.com/
|
19 |
* Text Domain: ip-geo-block
|