properly closes #6698

v1.18.x
Julian Lam 7 years ago
parent 82e61d76fd
commit 2ce6a85756

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

Loading…
Cancel
Save