X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FBlock.php;h=05e97b98d91dd635db3f38e5c0a6733f35a09ade;hp=5066038ba02ff6ae1903561541959fbcda2efa56;hb=a23183010ed4fe4bfb3e47e29174d59cbe1ec98e;hpb=0f13fff1604778397c4ca3072ab80ef113c936ff diff --git a/includes/Block.php b/includes/Block.php index 5066038ba0..05e97b98d9 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -1354,7 +1354,7 @@ class Block { self::TYPE_IP ]; - } elseif ( IP::isValidBlock( $target ) ) { + } elseif ( IP::isValidRange( $target ) ) { # Can't create a User from an IP range return [ IP::sanitizeRange( $target ), self::TYPE_RANGE ]; }