From: umherirrender Date: Fri, 30 Jan 2015 17:08:10 +0000 (+0100) Subject: Escape messages 'word-separator' and 'parentheses' in InfoAction X-Git-Tag: 1.31.0-rc.0~12245^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=a30c4f4980881ddd8f864cbcef388242008e8d2c;p=lhc%2Fweb%2Fwiklou.git Escape messages 'word-separator' and 'parentheses' in InfoAction This change will not break the usage of the messages, because there are usually used escaped in mediawiki/core. Change-Id: I049134e2fbfadab04ac228090d17fd18c5baca3d --- diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index ff31eb67c4..338d9396a8 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -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() ); }