From: Kunal Mehta Date: Fri, 24 Jul 2015 21:23:46 +0000 (-0700) Subject: SECURITY: Don't disclose if an IP is autoblocked on Special:DeletedContributions X-Git-Tag: 1.31.0-rc.0~10459 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=5faabfa1bbf65536ea36108887040198afcb3c82;p=lhc%2Fweb%2Fwiklou.git SECURITY: Don't disclose if an IP is autoblocked on Special:DeletedContributions Same patch as dc2966bd05b, just for Special:DeletedContributions this time. Bug: T106893 Change-Id: I2089b21fc379b612fe9bf087b5f4ea75052bdbd3 --- diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 8c7f0c89c1..44352a78b5 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -477,7 +477,7 @@ class DeletedContributionsPage extends SpecialPage { if ( ( $id !== null ) || ( $id === null && IP::isIPAddress( $nt->getText() ) ) ) { # Block / Change block / Unblock links if ( $this->getUser()->isAllowed( 'block' ) ) { - if ( $userObj->isBlocked() ) { + if ( $userObj->isBlocked() && $userObj->getBlock()->getType() !== Block::TYPE_AUTO ) { $tools[] = Linker::linkKnown( # Change block link SpecialPage::getTitleFor( 'Block', $nt->getDBkey() ), $this->msg( 'change-blocklink' )->escaped()