mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
fix: escape flag reason
This commit is contained in:
@@ -454,7 +454,7 @@ Flags.getReports = async function (flagId) {
|
||||
const [reports, uids] = payload.reduce((memo, cur) => {
|
||||
const value = cur.value.split(';');
|
||||
memo[1].push(value.shift());
|
||||
cur.value = value.join(';');
|
||||
cur.value = validator.escape(String(value.join(';')));
|
||||
memo[0].push(cur);
|
||||
|
||||
return memo;
|
||||
|
||||
Reference in New Issue
Block a user