API: Fix IPv6 handling in list=blocks
commit4134a0b70fee4478ae21bda54b0af9b67c7a354e
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 6 May 2013 14:27:46 +0000 (6 10:27 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 13 Jun 2013 14:42:32 +0000 (13 10:42 -0400)
tree4fb3a27e1bc1c9591d3ebf964abf3c53ad0bb262
parent4aa70fb5dfd002eb9f77dbbbeaee580c7223c530
API: Fix IPv6 handling in list=blocks

The current handling of the bkip parameter assumes IPv4, and breaks for
IPv6 CIDR ranges (it also isn't working right for IPv6 non-CIDR, but not
in an obvious way).

This rewrite handles IPv6 correctly. It also necessarily adds validation
for the bkip parameter, which would formerly return (not very sensible)
results when passed invalid values.

Bug: 48129
Change-Id: I02471bb32c3a217004d07a79d9f98b62133b31ef
RELEASE-NOTES-1.22
includes/api/ApiQueryBlocks.php