From: Niklas Laxström Date: Sat, 8 Jul 2006 13:39:35 +0000 (+0000) Subject: * Do some escaping to page titles put into wikitext X-Git-Tag: 1.31.0-rc.0~56345 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=88a80e65f4246e159d9aa2ccc835767c7f0baedb;p=lhc%2Fweb%2Fwiklou.git * Do some escaping to page titles put into wikitext --- diff --git a/includes/Article.php b/includes/Article.php index b1e1f620c8..9aed6f4390 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1447,7 +1447,7 @@ class Article { $wgOut->setPagetitle( wfMsg( 'addedwatch' ) ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); - $link = $this->mTitle->getPrefixedText(); + $link = wfEscapeWikiText( $this->mTitle->getPrefixedText() ); $text = wfMsg( 'addedwatchtext', $link ); $wgOut->addWikiText( $text ); } @@ -1495,7 +1495,7 @@ class Article { $wgOut->setPagetitle( wfMsg( 'removedwatch' ) ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); - $link = $this->mTitle->getPrefixedText(); + $link = wfEscapeWikiText( $this->mTitle->getPrefixedText() ); $text = wfMsg( 'removedwatchtext', $link ); $wgOut->addWikiText( $text ); }