escape html tags in log output

While normally this isn't enough to prevent XSS, this output will only
appear in the body of a <pre>, and anyway the scripts are semi-privileged
pull/25/merge
Oliver Giles 7 years ago
parent 3129f0e73b
commit 1f23ec5fb2

@ -430,7 +430,7 @@ const Run = function() {
};
var firstLog = false;
var logHandler = function(vm, d) {
state.log += d;
state.log += d.replace(/</g,'&lt;').replace(/>/g,'&gt;');
vm.$forceUpdate();
if (!firstLog) {
firstLog = true;

Loading…
Cancel
Save