Use Unicode '\u00A0' instead of HTML ' '
The .html() can replaced by .text() which avoids a possible JavaScript injection by a malicious message. Change-Id: Iffdf13299db6fb4ccd8a35b9df4c2f235646ea9d
This commit is contained in:
@@ -199,8 +199,7 @@
|
|||||||
$( '<p>' ).append(
|
$( '<p>' ).append(
|
||||||
$( '<span>' )
|
$( '<span>' )
|
||||||
.addClass( 'uls-display-settings-anon-label' )
|
.addClass( 'uls-display-settings-anon-label' )
|
||||||
// .html() is needed for correct parsing of the nbsp
|
.text( $.i18n( 'ext-uls-display-settings-anon-label' ) + '\u00A0' ),
|
||||||
.html( $.i18n( 'ext-uls-display-settings-anon-label' ) + ' ' ),
|
|
||||||
$( '<span>' )
|
$( '<span>' )
|
||||||
.text( $.i18n( 'ext-uls-display-settings-anon-same-as-content', autonym ) )
|
.text( $.i18n( 'ext-uls-display-settings-anon-same-as-content', autonym ) )
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user