From: Rob Church Date: Mon, 15 Jan 2007 06:47:38 +0000 (+0000) Subject: Format block addresses with underscores better in convenience link labels X-Git-Tag: 1.31.0-rc.0~54386 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=651b72c627be0940976a46622027affd8c83de37;p=lhc%2Fweb%2Fwiklou.git Format block addresses with underscores better in convenience link labels --- diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index e7626f0e2a..5a2ace0cfc 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -336,7 +336,7 @@ class IPBlockForm { private function getUnblockLink( $skin ) { $list = SpecialPage::getTitleFor( 'Ipblocklist' ); if( $this->BlockAddress ) { - $addr = htmlspecialchars( $this->BlockAddress ); + $addr = htmlspecialchars( strtr( $this->BlockAddress, '_', ' ' ) ); return $skin->makeKnownLinkObj( $list, wfMsgHtml( 'ipb-unblock-addr', $addr ), 'action=unblock&ip=' . $this->BlockAddress ); } else { @@ -353,7 +353,7 @@ class IPBlockForm { private function getBlockListLink( $skin ) { $list = SpecialPage::getTitleFor( 'Ipblocklist' ); if( $this->BlockAddress ) { - $addr = htmlspecialchars( $this->BlockAddress ); + $addr = htmlspecialchars( strtr( $this->BlockAddress, '_', ' ' ) ); return $skin->makeKnownLinkObj( $list, wfMsgHtml( 'ipb-blocklist-addr', $addr ), 'ip=' . $this->BlockAddress ); } else {