Fixed action=query list=blocks for IPv6 addresses
authorMarius Hoch <hoo@online.de>
Sun, 11 Nov 2012 02:25:17 +0000 (03:25 +0100)
committerMarius Hoch <hoo@online.de>
Sun, 11 Nov 2012 02:25:17 +0000 (03:25 +0100)
commit7af38c756a0e0a50499375d43abb66a2aba781d8
tree117f9122fb148465defe8c0f98fc2ee1617c5397
parent164d5f7f1efffca8589361d3021b17c17d069fef
Fixed action=query list=blocks for IPv6 addresses

Queries like the following return wrong rangestart and rangeend
data cause the IP addresses are formated with only IPv4 in mind.
As IP::formatHex is able to format both I've switched over to
that.

Example:
http://en.wikipedia.org/w/api.php?format=xml&action=query&list=blocks&bkprop=range&bkip=2002%3AB752%3AD225%3A0%3A0%3A0%3A0%3A1

Change-Id: I6138240bb03bbf5af61851d3e96354a050e56fed
includes/api/ApiQueryBlocks.php