https://bugzilla.wikimedia.org/show_bug.cgi?id=30681
Web browser: ---
Bug #: 30681
Summary: [Message.php] Wrong escaping for inexistent messages
(ie. <message-key>)
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Internationalization
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
When creating a Message instance for an inexistant message they return value is
always html escaped, it ignores whether plain() or escaped() is used, it always
does:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Message.php?view=markup#l452
> return '<' . key . '>'
If not htmlescaped, it should be < and >. This is currently causing issues when
using:
<code>
Html::element( 'h3', array(), wfMessage( 'blabla' )->plain );
</code>
which results in double escaped input and weird html characters outputted to
the user.
--
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