mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -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) {
|
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);
|
queryHistory.handleHistory(self);
|
||||||
|
|
Loading…
Reference in a new issue