function wfSpecialMycontributions() {
global $wgUser, $wgOut;
$t = Title::makeTitle( NS_SPECIAL, 'Contributions' );
- $wgOut->redirect ( $t->getFullURL().'&target='.$wgUser->getName() );
+ $url = $t->getFullURL( 'target=' . urlencode( $wgUser->getName() ) );
+ $wgOut->redirect( $url );
}
?>
\ No newline at end of file