mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
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
This commit is contained in:
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,'<').replace(/>/g,'>');
|
||||
vm.$forceUpdate();
|
||||
if (!firstLog) {
|
||||
firstLog = true;
|
||||
|
Loading…
Reference in New Issue
Block a user