From ce56b9963a7273b7bf3e3880cbe351158996300e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 17 May 2006 10:29:55 +0000 Subject: [PATCH] * Do proper escaping --- includes/SpecialRecentchanges.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 5b72cc0f6d..0c05104b26 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -497,9 +497,14 @@ function rcOptionsPanel( $defaults, $nondefaults ) { $options = $nondefaults + $defaults; if( $options['from'] ) - $note = wfMsg( 'rcnotefrom', $wgLang->formatNum( $options['limit'] ), $wgLang->timeanddate( $options['from'], true ) ); + $note = wfMsgExt( 'rcnotefrom', array( 'parseinline' ), + $wgLang->formatNum( $options['limit'] ), + $wgLang->timeanddate( $options['from'], true ) ); else - $note = wfMsg( 'rcnote', $wgLang->formatNum( $options['limit'] ), $wgLang->formatNum( $options['days'] ), $wgLang->timeAndDate( wfTimestampNow(), true ) ); + $note = wfMsgExt( 'rcnote', array( 'parseinline' ), + $wgLang->formatNum( $options['limit'] ), + $wgLang->formatNum( $options['days'] ), + $wgLang->timeAndDate( wfTimestampNow(), true ) ); // limit links $options_limit = array(50, 100, 250, 500); @@ -546,8 +551,9 @@ function rcOptionsPanel( $defaults, $nondefaults ) { $now = $wgLang->timeanddate( wfTimestampNow(), true ); $tl = makeOptionsLink( $now, array( 'from' => wfTimestampNow()), $nondefaults ); - $rclinks = wfMsg( 'rclinks', $cl, $dl, $hl ); - $rclistfrom = wfMsg( 'rclistfrom', $tl ); + $rclinks = wfMsgExt( 'rclinks', array( 'parseinline', 'replaceafter'), + $cl, $dl, $hl ); + $rclistfrom = wfMsgExt( 'rclistfrom', array( 'parseinline', 'replaceafter'), $tl ); return "$note
$rclinks
$rclistfrom"; } @@ -578,11 +584,11 @@ function rcNamespaceForm( $namespace, $invert, $nondefaults, $categories_any ) { $cb_arr = array( 'type' => 'checkbox', 'name' => 'categories_any', 'value' => "1" ) ; if ( $categories_any ) $cb_arr['checked'] = "checked" ; $catbox = "
" ; - $catbox .= wfMsg('rc_categories') . " "; + $catbox .= wfMsgExt('rc_categories', array('parseinline')) . " "; $catbox .= wfElement('input', array( 'type' => 'text', 'name' => 'categories', 'value' => $categories)); $catbox .= "  " ; $catbox .= wfElement('input', $cb_arr ); - $catbox .= wfMsg('rc_categories_any'); + $catbox .= wfMsgExt('rc_categories_any', array('parseinline')); } else { $catbox = "" ; } -- 2.20.1