r10822 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10821‎ | r10822 | r10823 >
Date:02:19, 29 August 2005
Author:vibber
Status:old
Tags:
Comment:
* IP privacy fix for blocklist search on autoblocks
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialIpblocklist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialIpblocklist.php
@@ -177,8 +177,14 @@
178178 global $wgOut, $wgUser, $wgLang, $wgContLang;
179179
180180 if( $this->ip != '' ) {
181 - if( stristr( $block->mAddress, $this->ip ) == false ) {
182 - return;
 181+ if( $block->mAuto ) {
 182+ if( stristr( $block->mId, $this->ip ) == false ) {
 183+ return;
 184+ }
 185+ } else {
 186+ if( stristr( $block->mAddress, $this->ip ) == false ) {
 187+ return;
 188+ }
183189 }
184190 }
185191
Index: trunk/phase3/RELEASE-NOTES
@@ -70,6 +70,7 @@
7171 $wgFilterRobotsWL = true.
7272 * (bug 2885) More PHP 5.1 fixes: skin, search, log, undelete
7373 * Fix interlanguage links on special pages when extra namespaces configured
 74+* IP privacy fix for blocklist search on autoblocks
7475
7576
7677 === Caveats ===

Status & tagging log