Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/167975

Change subject: CoreParserFunctions, CoreTagHooks: Use escaped() rather than 
text() for output
......................................................................

CoreParserFunctions, CoreTagHooks: Use escaped() rather than text() for output

Change-Id: I2d050a21881f0a0e88197b5a234c3b55f65c7136
---
M includes/parser/CoreParserFunctions.php
M includes/parser/CoreTagHooks.php
2 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/75/167975/1

diff --git a/includes/parser/CoreParserFunctions.php 
b/includes/parser/CoreParserFunctions.php
index d9f1761..7132037 100644
--- a/includes/parser/CoreParserFunctions.php
+++ b/includes/parser/CoreParserFunctions.php
@@ -435,7 +435,7 @@
                                                // Message should be parsed, 
but these params should only be escaped.
                                                $converter->markNoConversion( 
wfEscapeWikiText( $old ) ),
                                                $converter->markNoConversion( 
wfEscapeWikiText( $text ) )
-                                       )->inContentLanguage()->text() .
+                                       )->inContentLanguage()->escaped() .
                                        '</span>';
                        }
                }
@@ -892,7 +892,7 @@
                                        // Message should be parsed, but these 
params should only be escaped.
                                        $converter->markNoConversion( 
wfEscapeWikiText( $old ) ),
                                        $converter->markNoConversion( 
wfEscapeWikiText( $text ) )
-                               )->inContentLanguage()->text() .
+                               )->inContentLanguage()->escaped() .
                                '</span>';
                }
        }
@@ -956,7 +956,7 @@
                $stripList = $parser->getStripList();
                if ( !in_array( $tagName, $stripList ) ) {
                        return '<span class="error">' .
-                               wfMessage( 'unknown_extension_tag', $tagName 
)->inContentLanguage()->text() .
+                               wfMessage( 'unknown_extension_tag', $tagName 
)->inContentLanguage()->escaped() .
                                '</span>';
                }
 
diff --git a/includes/parser/CoreTagHooks.php b/includes/parser/CoreTagHooks.php
index 3ffa16c..863f9de 100644
--- a/includes/parser/CoreTagHooks.php
+++ b/includes/parser/CoreTagHooks.php
@@ -135,7 +135,7 @@
        public static function indicator( $content, array $attributes, Parser 
$parser, PPFrame $frame ) {
                if ( !isset( $attributes['name'] ) || trim( $attributes['name'] 
) === '' ) {
                        return '<span class="error">' .
-                               wfMessage( 'invalid-indicator-name' 
)->inContentLanguage()->text() .
+                               wfMessage( 'invalid-indicator-name' 
)->inContentLanguage()->escaped() .
                                '</span>';
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/167975
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d050a21881f0a0e88197b5a234c3b55f65c7136
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to