fix: escape flag reason

This commit is contained in:
Barış Soner Uşaklı
2021-04-09 14:20:42 -04:00
parent fe087806cc
commit 161081e960
2 changed files with 22 additions and 5 deletions

View File

@@ -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;