diff options
Diffstat (limited to 'src/xss/sanitizeName.js')
-rw-r--r-- | src/xss/sanitizeName.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xss/sanitizeName.js b/src/xss/sanitizeName.js new file mode 100644 index 0000000..22185f4 --- /dev/null +++ b/src/xss/sanitizeName.js @@ -0,0 +1,4 @@ +if (/[<"'\`(=:]/.test(window.name)) { + console.log(`NoScript XSS filter sanitizing suspicious window.name "%s" on %s`, window.name, document.URL); + window.name = ""; +} |