Format block addresses with underscores better in convenience link labels
authorRob Church <robchurch@users.mediawiki.org>
Mon, 15 Jan 2007 06:47:38 +0000 (06:47 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 15 Jan 2007 06:47:38 +0000 (06:47 +0000)
includes/SpecialBlockip.php

index e7626f0..5a2ace0 100644 (file)
@@ -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 {