mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08: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…
Reference in a new issue