Block reason messages escape HTML

The block reason in the block message has escaped HTML. This
HTML should be rendered to the user.

Bug: T190901
Change-Id: Icda7c5d0c76aff7c22f3a6735d880a5ee49338ff
This commit is contained in:
David Barratt 2018-03-28 01:02:47 -04:00
parent 6cfa2c9380
commit 6bea4324c6
No known key found for this signature in database
GPG Key ID: 8C55B2BF3C1AD78F
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,8 @@
popup.show(
mw.msg(
'mobile-frontend-editor-blocked-info-loggedin',
blockInfo.blockReason,
// Strip any html in the blockReason.
$( '<div />' ).html( blockInfo.blockReason ).text(),
blockInfo.blockedBy
),
{