Based on a patch by Antonio Ospite - http://bug-attachment.wikimedia.org/attachment.cgi?id=6707
== Patch Contributors ==
* Agbad
* Ahmad Sherif
+* Antonio Ospite
* Azliq7
* Borislav Manolov
* Brad Jorsch
* (bug 21234) Moving subpages of titles containing \\ now works properly
* (bug 21006) maintenance/updateArticleCount.php now works again on PostgreSQL
* (bug 19319) Add activeusers-intro message at top of SpecialActiveUsers page
+* (bug 21255) Fixed hostname construction for DNSBL checking
== API changes in 1.16 ==
$host = '';
// FIXME: IPv6 ??? (http://bugs.php.net/bug.php?id=33170)
if( IP::isIPv4( $ip ) ) {
+ # Reverse IP, bug 21255
+ $ipReversed = implode( '.', array_reverse( explode( '.', $ip ) ) );
+
# Make hostname
- $host = "$ip.$base";
+ $host = "$ipReversed.$base";
# Send query
$ipList = gethostbynamel( $host );