Skip to content

Commit 028e357

Browse files
committed
syz-cluster/dashboard: html escape modal content
Otherwise we sometimes display broken data.
1 parent 22ec146 commit 028e357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syz-cluster/dashboard/templates/series.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h5 class="modal-title" id="contentModalLabel">Content</h5>&nbsp;
2727
body.html("")
2828
body.load(url, function(response, status, xhr){
2929
if (status == "success") {
30-
body.html("<pre>" + response + "</pre>")
30+
body.html($('<pre></pre>').text(response))
3131
}
3232
$('#contentModal').modal('show');
3333
});

0 commit comments

Comments
 (0)