Modify callers of makeLinkObj, many of these seam to be passing unescaped text which is actually treated as html and needs to be escaped.

This commit is contained in:
Daniel Friesen 2011-05-08 03:16:03 +00:00
parent a2eaa7f60c
commit f67bb1c229
Notes: Daniel Friesen 2011-05-08 03:16:03 +00:00

View file

@ -397,7 +397,7 @@ class ReplaceText extends SpecialPage {
foreach ( $titles_for_move as $title ) {
$wgOut->addHTML(
Xml::check( 'move-' . $title->getArticleID(), true ) .
$skin->makeLinkObj( $title, $title->getPrefixedText() ) . "<br />\n"
$skin->makeLinkObj( $title, htmlspecialchars( $title->getPrefixedText() ) ) . "<br />\n"
);
}
$wgOut->addHTML( '<br />' );