M4tx has uploaded a new change for review.

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

Change subject: Escape unescaped messages in Special:Ask
......................................................................

Escape unescaped messages in Special:Ask

Bug: T85864
Change-Id: Ie750efba7c2697e58d84a818d2f19384d77e4c58
---
M src/queryprinters/SM_KMLPrinter.php
M src/queryprinters/SM_MapPrinter.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticMaps 
refs/changes/39/184239/1

diff --git a/src/queryprinters/SM_KMLPrinter.php 
b/src/queryprinters/SM_KMLPrinter.php
index 8efeed1..4a00a83 100644
--- a/src/queryprinters/SM_KMLPrinter.php
+++ b/src/queryprinters/SM_KMLPrinter.php
@@ -184,6 +184,6 @@
         * @see SMWResultPrinter::getName()
         */
        public final function getName() {
-               return wfMessage( 'semanticmaps-kml' )->text();
+               return wfMessage( 'semanticmaps-kml' )->escaped();
        }
 }
diff --git a/src/queryprinters/SM_MapPrinter.php 
b/src/queryprinters/SM_MapPrinter.php
index 8499a54..a3e08f1 100644
--- a/src/queryprinters/SM_MapPrinter.php
+++ b/src/queryprinters/SM_MapPrinter.php
@@ -349,7 +349,7 @@
         * @return string
         */
        public final function getName() {
-               return wfMessage( 'maps_' . $this->service->getName() )->text();
+               return wfMessage( 'maps_' . $this->service->getName() 
)->escaped();
        }
        
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie750efba7c2697e58d84a818d2f19384d77e4c58
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMaps
Gerrit-Branch: master
Gerrit-Owner: M4tx <[email protected]>

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

Reply via email to