IP: Fix sanitization of IPv4 ranges
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 22 May 2018 21:12:30 +0000 (17:12 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 23 May 2018 14:34:20 +0000 (10:34 -0400)
commit57445f04259077c5bf927fc6a6dca189fbe86214
treead753d6900f899e5990ab1f04cfed1915e2f4a4a
parente946bd1432e935dbf77b12dbcf7379ae32d4661c
IP: Fix sanitization of IPv4 ranges

'000.000.000.000/24' should sanitize to '0.0.0.0/24', not
'0.0.0.000/24'.

Change-Id: I9364cb268dcc9b9b24aa1c627a87482978c4cf34
includes/libs/IP.php
tests/phpunit/includes/libs/IPTest.php