Skip to content

Commit

Permalink
Fix: sanitize response
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Sep 23, 2024
1 parent bfb5604 commit 585282a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/test/fuzzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function apiParamsToObject(p) {

function setTest(cmd, response) {
var tr = document.createElement('tr');
tr.innerHTML = '<td>' + (i + 1) + '</td><td>' + e(JSON.stringify(cmd)) + '</td><td>' + response + '</td>';
tr.innerHTML = '<td>' + (i + 1) + '</td><td>' + e(JSON.stringify(cmd)) + '</td><td>' + e(response) + '</td>';
const tbody = document.getElementsByTagName('tbody')[0];
tbody.appendChild(tr);
t++;
Expand Down

0 comments on commit 585282a

Please sign in to comment.