mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Ensure warnings are escaped (#6279)
Signed-off-by: David Leadbeater <dgl@dgl.cx>
This commit is contained in:
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…
Reference in a new issue