mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
sanitizing notes in flags details page, fixes #6698
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user