HomePhabricator

Don't allow invalid IP ranges to be entered in ip_in_range()

Description

Don't allow invalid IP ranges to be entered in ip_in_range()

IP::isInRange() can return true for invalid IPs so this can
cause false positives. Instead of letting this happen, don't
allow it in the first place.

See also Ibfe55c2ebac0fccfa8329436

Bug: T124117
Change-Id: Id10552e117ce2b231504e41627b44f8cfb0d4329

Details

Provenance
GlaisherAuthored on Mar 7 2016, 5:09 PM
matej_suchanekCommitted on Apr 13 2018, 8:59 AM
Parents
rEABF62f0a51bdbd4: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
Id10552e117ce2b231504e41627b44f8cfb0d4329