jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/354999 )

Change subject: Better escaping
......................................................................


Better escaping

In French, the special page Session displays " Adresse IP : "
because of a parser rule + HTML-escaping. It now uses a text
version of three messages instead of a wikitext version.

Change-Id: I852c1814d9ef84daf83c5f30dcf5fbea5ec74b06
---
M SpecialSessions.php
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  jenkins-bot: Verified
  Nikerabbit: Looks good to me, approved



diff --git a/SpecialSessions.php b/SpecialSessions.php
index f797e62..beb63a4 100644
--- a/SpecialSessions.php
+++ b/SpecialSessions.php
@@ -83,11 +83,11 @@
                        // Make a table describing the session.
                        $description = Html::rawElement( 'table', array(),
                                Html::rawElement( 'tr', array(),
-                                       Html::element( 'td', array( 'class' => 
'mw-label' ), $this->msg( 'securesessions-sessions-ip' ) ) .
+                                       Html::element( 'td', array( 'class' => 
'mw-label' ), $this->msg( 'securesessions-sessions-ip' )->text() ) .
                                        Html::element( 'td', array( 'class' => 
'mw-input' ), $session['ip'] )
                                ) .
                                Html::rawElement( 'tr', array(),
-                                       Html::element( 'td', array( 'class' => 
'mw-label' ), $this->msg( 'securesessions-sessions-activity' ) ) .
+                                       Html::element( 'td', array( 'class' => 
'mw-label' ), $this->msg( 'securesessions-sessions-activity' )->text() ) .
                                        Html::element( 'td', array( 'class' => 
'mw-input' ), $timestamp->getHumanTimestamp() )
                                )
                        );
@@ -119,7 +119,7 @@
 
                $form = new HTMLForm( $this->fields, $this->getContext() );
                $form->setSubmitCallback( array( $this, 'onSubmit' ) );
-               $form->setWrapperLegend( $this->msg( 
'securesessions-sessions-legend' ) );
+               $form->setWrapperLegendMsg( 'securesessions-sessions-legend' );
                $form->addHeaderText(
                        $this->msg( 'securesessions-sessions-text' 
)->parseAsBlock() );
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I852c1814d9ef84daf83c5f30dcf5fbea5ec74b06
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/SecureSessions
Gerrit-Branch: master
Gerrit-Owner: Seb35 <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Raimond Spekking <[email protected]>
Gerrit-Reviewer: Seb35 <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to