mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 10:10:01 -03:30
Prevent html injection in host events
replaced '<' and '>' characters with their escape characters to prevent html from being rendered onto the view.
This commit is contained in:
@@ -360,6 +360,8 @@ angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFo
|
||||
event_data.id = event.id;
|
||||
event_data.parent = event.parent;
|
||||
event_data.event = (event.event_display) ? event.event_display : event.event;
|
||||
event_data.msg = event_data.msg.replace(/</g, "<");
|
||||
event_data.msg = event_data.msg.replace(/>/g, ">");
|
||||
results.push(event_data);
|
||||
});
|
||||
if (show_event) {
|
||||
|
||||
Reference in New Issue
Block a user