https://bugzilla.wikimedia.org/show_bug.cgi?id=34365

       Web browser: ---
             Bug #: 34365
           Summary: Inconsistent escaping in mw.msg vs. jqueryMsg
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Javascript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


The message functions from mediawiki.js (mw.msg etc.) and the functions from
mediawiki.jqueryMsg.js treat HTML in parameters differently. While mw.msg
leaves it just as it is, jqueryMsg escapes every input without a way to avoid
it:

>>> mw.messages.set({'testmsg': 'Parameter: $1'});
true
>>> mw.msg('testmsg', '<b>Bold</b>');
"Parameter: <b>Bold</b>"
>>> gM('testmsg', '<b>Bold</b>');
"Parameter: &lt;b&gt;Bold&lt;/b&gt;"

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to