Merge pull request #1133 from prometheus/escape-string-values

HTML-escape string return values in web UI.
pull/1134/head
Julius Volz 9 years ago
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…
Cancel
Save