* Do some escaping to page titles put into wikitext
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 8 Jul 2006 13:39:35 +0000 (13:39 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 8 Jul 2006 13:39:35 +0000 (13:39 +0000)
includes/Article.php

index b1e1f62..9aed6f4 100644 (file)
@@ -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 );
                }