Plugin Directory

Changeset 3442117


Ignore:
Timestamp:
01/18/2026 10:20:37 PM (2 months ago)
Author:
ip2location
Message:

Fixed implicit conversion of mask to int.

Location:
ip2location-redirection/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ip2location-redirection/trunk/ip2location-redirection.php

    r3411746 r3442117  
    55 * Plugin URI: https://ip2location.com/resources/wordpress-ip2location-redirection
    66 * Description: Redirect visitors by their country.
    7  * Version: 1.36.0
     7 * Version: 1.36.1
    88 * Requires PHP: 7.4
    99 * Author: IP2Location
     
    30023002            $subnet = inet_pton($subnet);
    30033003
    3004             $binMask = str_repeat('f', $mask / 4);
     3004            $binMask = str_repeat('f', (int)($mask / 4));
    30053005            switch ($mask % 4) {
    30063006                case 0:
  • ip2location-redirection/trunk/readme.txt

    r3411746 r3442117  
    55Requires at least: 4.6
    66Tested up to: 6.9
    7 Stable tag: 1.36.0
     7Stable tag: 1.36.1
    88
    99Redirects visitors to a blog page or a predefined URL based on their country and region geolocated using IP address.
     
    6363
    6464== Changelog ==
     65* 1.36.1 Fixed implicit conversion of mask to int.
    6566* 1.36.0 Added rule statistics, advance path matching, dialog prompt, and automatically BIN database updates.
    6667* 1.35.1 Fixed "Download IPv4 database only" checkbox was ignore during database update.
Note: See TracChangeset for help on using the changeset viewer.