jenkins-bot has submitted this change and it was merged.
Change subject: Add new method to process a param in escaped format
......................................................................
Add new method to process a param in escaped format
Change-Id: Ie777d7838b83d6109adf3ea8a71dd19240d8b6f5
---
M formatters/BasicFormatter.php
1 file changed, 14 insertions(+), 0 deletions(-)
Approvals:
EBernhardson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/formatters/BasicFormatter.php b/formatters/BasicFormatter.php
index 78b78d9..e29d3eb 100644
--- a/formatters/BasicFormatter.php
+++ b/formatters/BasicFormatter.php
@@ -637,6 +637,20 @@
}
/**
+ * Process a param that should be escaped
+ * @param $message Message
+ * @param $paramContent string
+ */
+ protected function processParamEscaped( $message, $paramContent ) {
+ // Plain text email does not need escape
+ if ( $this->outputFormat !== 'email' ) {
+ $paramContent = htmlspecialchars( $paramContent );
+ }
+
+ $message->rawParams( $paramContent );
+ }
+
+ /**
* Get the URL for the primary or secondary link for an event
*
* @param EchoEvent $event
--
To view, visit https://gerrit.wikimedia.org/r/90046
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie777d7838b83d6109adf3ea8a71dd19240d8b6f5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Matthias Mullie <[email protected]>
Gerrit-Reviewer: Werdna <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits