Fix double-escaping for section edit link tooltips
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 8 Oct 2010 18:52:23 +0000 (18:52 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 8 Oct 2010 18:52:23 +0000 (18:52 +0000)
Bug 25462.

RELEASE-NOTES
includes/Linker.php

index 540290a..69eddfd 100644 (file)
@@ -354,6 +354,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 25167) Correctly load JS fixes for IE6 (fixing a regression in 1.16)
 * (bug 25367) wfShellExec() is more explicit when failing due to disabled
   passthru()
+* (bug 25462) Fix double-escaping for section edit link tooltips
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index 5e3d48b..9413872 100644 (file)
@@ -1377,6 +1377,8 @@ class Linker {
                // added to it for LTR text on RTL pages
                $attribs = array();
                if ( !is_null( $tooltip ) ) {
+                       # Bug 25462: undo double-escaping.
+                       $tooltip = Sanitizer::decodeCharReferences( $tooltip );
                        $attribs['title'] = wfMsgReal( 'editsectionhint', array( $tooltip ), true, $lang );
                }
                $link = $this->link( $nt, wfMsgExt( 'editsection', array( 'language' => $lang ) ),