Escape messages 'word-separator' and 'parentheses' in InfoAction
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 30 Jan 2015 17:08:10 +0000 (18:08 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 26 Feb 2015 20:11:15 +0000 (20:11 +0000)
This change will not break the usage of the messages, because there are
usually used escaped in mediawiki/core.

Change-Id: I049134e2fbfadab04ac228090d17fd18c5baca3d

includes/actions/InfoAction.php

index ff31eb6..338d939 100644 (file)
@@ -246,13 +246,13 @@ class InfoAction extends FormlessAction {
                        $pageInfo['header-basic'][] = array(
                                $this->msg( 'pageinfo-redirectsto' ),
                                Linker::link( $this->page->getRedirectTarget() ) .
-                               $this->msg( 'word-separator' )->text() .
-                               $this->msg( 'parentheses', Linker::link(
+                               $this->msg( 'word-separator' )->escaped() .
+                               $this->msg( 'parentheses' )->rawParams( Linker::link(
                                        $this->page->getRedirectTarget(),
                                        $this->msg( 'pageinfo-redirectsto-info' )->escaped(),
                                        array(),
                                        array( 'action' => 'info' )
-                               ) )->text()
+                               ) )->escaped()
                        );
                }