Skip to content

Commit

Permalink
SECURITY: Don't disclose if an IP is autoblocked on Special:DeletedCo…
Browse files Browse the repository at this point in the history
…ntributions

Same patch as dc2966b, just for Special:DeletedContributions this
time.

Bug: T106893
Change-Id: I2089b21fc379b612fe9bf087b5f4ea75052bdbd3
  • Loading branch information
legoktm authored and Chad Horohoe committed Aug 11, 2015
1 parent a2d6ecc commit 5faabfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/specials/SpecialDeletedContributions.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ function getSubTitle( $userObj ) {
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()
Expand Down

0 comments on commit 5faabfa

Please sign in to comment.