From dd0b5aa137812eb3bb41768971e3b8427cbb197e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 29 Aug 2005 02:19:22 +0000 Subject: [PATCH] * IP privacy fix for blocklist search on autoblocks --- RELEASE-NOTES | 1 + includes/SpecialIpblocklist.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d8a2c13d72..bc3a62ff84 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -70,6 +70,7 @@ fully support the editing toolbar, but was found to be too confusing. $wgFilterRobotsWL = true. * (bug 2885) More PHP 5.1 fixes: skin, search, log, undelete * Fix interlanguage links on special pages when extra namespaces configured +* IP privacy fix for blocklist search on autoblocks === Caveats === diff --git a/includes/SpecialIpblocklist.php b/includes/SpecialIpblocklist.php index f8b78d7c8a..ad76832cec 100644 --- a/includes/SpecialIpblocklist.php +++ b/includes/SpecialIpblocklist.php @@ -177,8 +177,14 @@ class IPUnblockForm { global $wgOut, $wgUser, $wgLang, $wgContLang; if( $this->ip != '' ) { - if( stristr( $block->mAddress, $this->ip ) == false ) { - return; + if( $block->mAuto ) { + if( stristr( $block->mId, $this->ip ) == false ) { + return; + } + } else { + if( stristr( $block->mAddress, $this->ip ) == false ) { + return; + } } } -- 2.20.1