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:
parent
6cfa2c9380
commit
6bea4324c6
|
@ -298,7 +298,8 @@
|
||||||
popup.show(
|
popup.show(
|
||||||
mw.msg(
|
mw.msg(
|
||||||
'mobile-frontend-editor-blocked-info-loggedin',
|
'mobile-frontend-editor-blocked-info-loggedin',
|
||||||
blockInfo.blockReason,
|
// Strip any html in the blockReason.
|
||||||
|
$( '<div />' ).html( blockInfo.blockReason ).text(),
|
||||||
blockInfo.blockedBy
|
blockInfo.blockedBy
|
||||||
),
|
),
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue