sanitizing notes in flags details page, fixes #6698

v1.18.x
Julian Lam 7 years ago
parent a77630c6be
commit ed9dc113b0

@ -99,7 +99,10 @@ Flags.get = function (flagId, callback) {
target_readable: data.base.type.charAt(0).toUpperCase() + data.base.type.slice(1) + ' ' + data.base.targetId,
target: payload.targetObj,
history: data.history,
notes: data.notes,
notes: data.notes.map((note) => {
note.content = validator.escape(note.content);
return note;
}),
reporter: payload.userObj,
}));
});

Loading…
Cancel
Save