mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-27 07:36:01 +00:00
Trying out the XSS-safe approach for puter.print
This commit is contained in:
@@ -524,7 +524,8 @@ export default window.puter = (function() {
|
||||
|
||||
print = function(...args){
|
||||
for(let arg of args){
|
||||
document.body.innerHTML += arg;
|
||||
const textNode = document.createTextNode(arg);
|
||||
document.body.appendChild(textNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user