From 69edd8369ead428826f3bb950a14827c8d4f19e1 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 15 Jan 2007 18:33:37 +0000 Subject: [PATCH] some mornings 2 cups of coffee isn't enough fix my last fix, and fix another one w/ same problem --- includes/SpecialBlockip.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index dddc9d3776..d73593bb52 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -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' ) ); } -- 2.20.1