From: Rob Church Date: Sun, 2 Apr 2006 03:03:40 +0000 (+0000) Subject: Fix buggered "URL encoding" of usernames in user contributions tool links X-Git-Tag: 1.6.0~82 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=6bc7cf4e14ec5d60747895e2caf97ebcb41ee85b;p=lhc%2Fweb%2Fwiklou.git Fix buggered "URL encoding" of usernames in user contributions tool links --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 7f1dc75848..a676959a06 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -226,12 +226,12 @@ function wfSpecialContributions( $par = null ) { if( ( $id != 0 && $wgSysopUserBans ) || ( $id == 0 && User::isIP( $nt->getText() ) ) ) { # Block link if( $wgUser->isAllowed( 'block' ) ) - $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . urlencode( $nt->getText() ) ), wfMsgHtml( 'blocklink' ) ); + $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . $nt->getPartialUrl() ), wfMsgHtml( 'blocklink' ) ); # Block log link - $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Log' ), htmlspecialchars( LogPage::logName( 'block' ) ), 'type=block&page=' . urlencode( $nt->getPrefixedText() ) ); + $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Log' ), htmlspecialchars( LogPage::logName( 'block' ) ), 'type=block&page=' . $nt->getPrefixedUrl() ); } # Other logs link - $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Log' ), wfMsgHtml( 'log' ), 'user=' . urlencode( $nt->getText() ) ); + $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Log' ), wfMsgHtml( 'log' ), 'user=' . $nt->getPartialUrl() ); $ul .= ' (' . implode( ' | ', $tools ) . ')'; }