From 6bea4324c687b639489d4f4e0f3d3af403ac826c Mon Sep 17 00:00:00 2001 From: David Barratt Date: Wed, 28 Mar 2018 01:02:47 -0400 Subject: [PATCH] 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 --- resources/skins.minerva.editor/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/skins.minerva.editor/init.js b/resources/skins.minerva.editor/init.js index 7632bcdaa..7d4fb5f89 100644 --- a/resources/skins.minerva.editor/init.js +++ b/resources/skins.minerva.editor/init.js @@ -298,7 +298,8 @@ popup.show( mw.msg( 'mobile-frontend-editor-blocked-info-loggedin', - blockInfo.blockReason, + // Strip any html in the blockReason. + $( '
' ).html( blockInfo.blockReason ).text(), blockInfo.blockedBy ), {