mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-07 13:26:13 +02:00
Merge pull request #1133 from prometheus/escape-string-values
HTML-escape string return values in web UI.
This commit is contained in:
commit
d025fcd4e2
File diff suppressed because one or more lines are too long
@ -601,7 +601,7 @@ Prometheus.Graph.prototype.handleConsoleResponse = function(data, textStatus) {
|
||||
tBody.append("<tr><td>scalar</td><td>" + data.result[1] + "</td></tr>");
|
||||
break;
|
||||
case "string":
|
||||
tBody.append("<tr><td>string</td><td>" + data.result[1] + "</td></tr>");
|
||||
tBody.append("<tr><td>string</td><td>" + escapeHTML(data.result[1]) + "</td></tr>");
|
||||
break;
|
||||
default:
|
||||
self.showError("Unsupported value type!");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user