From b6d8d47ed2b3ab89b7c07daa776dbf18ce3829f8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 15 Jan 2007 18:08:35 +0000 Subject: [PATCH] s/htmlspecialchars/urlencode/ for a URL get parameter otherwise will fail for names containing '&' or perhaps other places --- includes/SpecialBlockip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 5a2ace0cfc..dddc9d3776 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( strtr( $this->BlockAddress, '_', ' ' ) ); + $addr = urlencode( strtr( $this->BlockAddress, '_', ' ' ) ); return $skin->makeKnownLinkObj( $list, wfMsgHtml( 'ipb-unblock-addr', $addr ), 'action=unblock&ip=' . $this->BlockAddress ); } else { -- 2.20.1