Fix unsanitized name in profile again
This commit is contained in:
parent
704d42d169
commit
032186cc4c
@ -299,7 +299,7 @@ define([
|
|||||||
$(muteButton).click(function () {
|
$(muteButton).click(function () {
|
||||||
module.execCommand('MUTE_USER', {
|
module.execCommand('MUTE_USER', {
|
||||||
curvePublic: data.curvePublic,
|
curvePublic: data.curvePublic,
|
||||||
name: data.displayName || data.name,
|
name: Util.fixHTML(data.displayName || data.name),
|
||||||
avatar: data.avatar
|
avatar: data.avatar
|
||||||
}, function (e) {
|
}, function (e) {
|
||||||
if (e) { console.error(e); return void UI.warn(Messages.error); }
|
if (e) { console.error(e); return void UI.warn(Messages.error); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user