some mornings 2 cups of coffee isn't enough
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 15 Jan 2007 18:33:37 +0000 (18:33 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 15 Jan 2007 18:33:37 +0000 (18:33 +0000)
fix my last fix, and fix another one w/ same problem

includes/SpecialBlockip.php

index dddc9d3..d73593b 100644 (file)
@@ -336,9 +336,9 @@ class IPBlockForm {
        private function getUnblockLink( $skin ) {
                $list = SpecialPage::getTitleFor( 'Ipblocklist' );
                if( $this->BlockAddress ) {
-                       $addr = urlencode( strtr( $this->BlockAddress, '_', ' ' ) );
+                       $addr = htmlspecialchars( strtr( $this->BlockAddress, '_', ' ' ) );
                        return $skin->makeKnownLinkObj( $list, wfMsgHtml( 'ipb-unblock-addr', $addr ),
-                               'action=unblock&ip=' . $this->BlockAddress );
+                               'action=unblock&ip=' . urlencode( $this->BlockAddress ) );
                } else {
                        return $skin->makeKnownLinkObj( $list, wfMsgHtml( 'ipb-unblock' ),      'action=unblock' );
                }
@@ -355,7 +355,7 @@ class IPBlockForm {
                if( $this->BlockAddress ) {
                        $addr = htmlspecialchars( strtr( $this->BlockAddress, '_', ' ' ) );
                        return $skin->makeKnownLinkObj( $list, wfMsgHtml( 'ipb-blocklist-addr', $addr ),
-                               'ip=' . $this->BlockAddress );
+                               'ip=' . urlencode( $this->BlockAddress ) );
                } else {
                        return $skin->makeKnownLinkObj( $list, wfMsgHtml( 'ipb-blocklist' ) );
                }