1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IPV6 Block

Discussion in 'Bug/Exploit Reports' started by Ch3ma, Nov 1, 2017.

  1. Ch3ma

    Ch3ma New Member

    Hi, in class.validator.php the function to check ip in regex only check support IPV4:

    public static function Ip($string){
            return (bool)
    preg_ match("/^(1?\d{1,2}|2([0-4]\d|5[0-5]))(\.(1?\d{1,2}|2([0-4]\d|5[0-5]))){3}$/"$string);
    That cause IPV6 web blocks.

    To fix that, is better use the native function in php:

    public static function Ip($string){
    Lautaro can you please push this in the next update?

    pd: excuse my english i speak spanish.
    Lautaro likes this.
  2. Lautaro

    Lautaro Administrator Developer

    Ch3ma likes this.

Share This Page