Ensure warnings are escaped (#6279)

Signed-off-by: David Leadbeater <dgl@dgl.cx>
pull/6283/head
David Leadbeater 5 years ago committed by Brian Brazil
parent 431844f0a7
commit 129dbdaf74

@ -514,7 +514,7 @@ Prometheus.Graph.prototype.submitQuery = function() {
}
if ("warnings" in json && json.warnings.length > 0) {
self.showWarning(json.warnings.join('<br>'));
self.showWarning(json.warnings.map(escapeHTML).join('<br>'));
}
queryHistory.handleHistory(self);

Loading…
Cancel
Save