From: Brion Vibber Date: Mon, 15 Jan 2007 18:08:35 +0000 (+0000) Subject: s/htmlspecialchars/urlencode/ for a URL get parameter X-Git-Tag: 1.31.0-rc.0~54378 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=b6d8d47ed2b3ab89b7c07daa776dbf18ce3829f8;p=lhc%2Fweb%2Fwiklou.git s/htmlspecialchars/urlencode/ for a URL get parameter otherwise will fail for names containing '&' or perhaps other places --- 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 {