Merge "Move call of Sanitizer::decodeCharReferences from Skin to Parser"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 13 Sep 2017 17:54:13 +0000 (17:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 13 Sep 2017 17:54:13 +0000 (17:54 +0000)
1  2 
includes/skins/Skin.php

diff --combined includes/skins/Skin.php
@@@ -1578,8 -1578,6 +1578,6 @@@ abstract class Skin extends ContextSour
  
                $attribs = [];
                if ( !is_null( $tooltip ) ) {
-                       # T27462: undo double-escaping.
-                       $tooltip = Sanitizer::decodeCharReferences( $tooltip );
                        $attribs['title'] = wfMessage( 'editsectionhint' )->rawParams( $tooltip )
                                ->inLanguage( $lang )->text();
                }
  
                $result .= implode(
                        '<span class="mw-editsection-divider">'
 -                              . wfMessage( 'pipe-separator' )->inLanguage( $lang )->text()
 +                              . wfMessage( 'pipe-separator' )->inLanguage( $lang )->escaped()
                                . '</span>',
                        $linksHtml
                );