Index: trunk/phase3/CREDITS |
— | — | @@ -59,6 +59,7 @@ |
60 | 60 | == Patch Contributors == |
61 | 61 | * Agbad |
62 | 62 | * Ahmad Sherif |
| 63 | +* Antonio Ospite |
63 | 64 | * Azliq7 |
64 | 65 | * Borislav Manolov |
65 | 66 | * Brad Jorsch |
Index: trunk/phase3/includes/User.php |
— | — | @@ -1195,8 +1195,11 @@ |
1196 | 1196 | $host = ''; |
1197 | 1197 | // FIXME: IPv6 ??? (http://bugs.php.net/bug.php?id=33170) |
1198 | 1198 | if( IP::isIPv4( $ip ) ) { |
| 1199 | + # Reverse IP, bug 21255 |
| 1200 | + $ipReversed = implode( '.', array_reverse( explode( '.', $ip ) ) ); |
| 1201 | + |
1199 | 1202 | # Make hostname |
1200 | | - $host = "$ip.$base"; |
| 1203 | + $host = "$ipReversed.$base"; |
1201 | 1204 | |
1202 | 1205 | # Send query |
1203 | 1206 | $ipList = gethostbynamel( $host ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -589,6 +589,7 @@ |
590 | 590 | * (bug 21234) Moving subpages of titles containing \\ now works properly |
591 | 591 | * (bug 21006) maintenance/updateArticleCount.php now works again on PostgreSQL |
592 | 592 | * (bug 19319) Add activeusers-intro message at top of SpecialActiveUsers page |
| 593 | +* (bug 21255) Fixed hostname construction for DNSBL checking |
593 | 594 | |
594 | 595 | == API changes in 1.16 == |
595 | 596 | |