mirror of
				https://github.com/ohwgiles/laminar.git
				synced 2025-06-13 12:54:29 +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 firstLog = false;
 | 
				
			||||||
  var logHandler = function(vm, d) {
 | 
					  var logHandler = function(vm, d) {
 | 
				
			||||||
    state.log += d;
 | 
					    state.log += d.replace(/</g,'<').replace(/>/g,'>');
 | 
				
			||||||
    vm.$forceUpdate();
 | 
					    vm.$forceUpdate();
 | 
				
			||||||
    if (!firstLog) {
 | 
					    if (!firstLog) {
 | 
				
			||||||
      firstLog = true;
 | 
					      firstLog = true;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user