提交 129dbdaf 编写于 作者: D David Leadbeater 提交者: Brian Brazil

Ensure warnings are escaped (#6279)

Signed-off-by: NDavid Leadbeater <dgl@dgl.cx>
上级 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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册