if ( 0 == $u ) {
$ul = $this->mSkin->makeKnownLink( $wgLang->specialPage( "Contributions" ),
- $ut, "target=" . $ut );
+ htmlspecialchars( $ut ), "target=" . urlencode( $ut ) );
} else {
$ul = $this->mSkin->makeLink( $wgLang->getNsText(
- Namespace::getUser() ) . ":{$ut}", $ut );
+ Namespace::getUser() ) . ":{$ut}", htmlspecialchars( $ut ) );
}
$s = "<li>";
if ( 0 == $id ) {
$ul = $nt->getText();
} else {
- $ul = $sk->makeLinkObj( $nt, $nt->getText() );
+ $ul = $sk->makeLinkObj( $nt, htmlspecialchars( $nt->getText() ) );
$userCond = "=" . $id;
}
$talk = $nt->getTalkPage();