Commit 129dbdaf authored by David Leadbeater's avatar David Leadbeater Committed by Brian Brazil
Browse files

Ensure warnings are escaped (#6279)


Signed-off-by: default avatarDavid Leadbeater <dgl@dgl.cx>
parent 431844f0
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment