diff --git a/src/flags.js b/src/flags.js index 00bce1d9bd..be0f849244 100644 --- a/src/flags.js +++ b/src/flags.js @@ -663,6 +663,7 @@ Flags.canFlag = async function (type, id, uid, skipLimitCheck = false) { Flags.getTarget = async function (type, id, uid) { if (type === 'user') { const userData = await user.getUserData(id); + userData.aboutme = validator.escape(String(userData.aboutme)); return userData && userData.uid ? userData : {}; } if (type === 'post') { diff --git a/src/views/flags/detail.tpl b/src/views/flags/detail.tpl index 6c8cd657f3..c1e39af6ac 100644 --- a/src/views/flags/detail.tpl +++ b/src/views/flags/detail.tpl @@ -123,7 +123,7 @@ {{{ end }}} {{{ if type_bool.user }}} -