Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
prometheus
Commits
129dbdaf
Commit
129dbdaf
authored
Nov 06, 2019
by
David Leadbeater
Committed by
Brian Brazil
Nov 06, 2019
Browse files
Ensure warnings are escaped (#6279)
Signed-off-by:
David Leadbeater
<
dgl@dgl.cx
>
parent
431844f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/ui/static/js/graph/index.js
View file @
129dbdaf
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment