summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorhackademix2020-02-29 19:01:45 +0100
committerhackademix2020-02-29 19:01:45 +0100
commit9a664f7b3b6a5315983317b0e47128b809bc5531 (patch)
tree057ff4d7b4cd7c00634c2655c44774e6a9c8a01c /src/test
parente48c2053dfef4fb9209e3d432738b8fef6b8d507 (diff)
downloadnoscript-9a664f7b3b6a5315983317b0e47128b809bc5531.tar.gz
noscript-9a664f7b3b6a5315983317b0e47128b809bc5531.tar.xz
noscript-9a664f7b3b6a5315983317b0e47128b809bc5531.zip
Refactored XSS filter into an asynchronous worker to better handle DOS attempts.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/XSS_test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/XSS_test.js b/src/test/XSS_test.js
index 3ec798c..4337e2f 100644
--- a/src/test/XSS_test.js
+++ b/src/test/XSS_test.js
@@ -1,5 +1,5 @@
if (UA.isMozilla) {
- let y = async (url, originUrl = '') => await XSS.maybe({originUrl, url, method: "GET"});
+ let y = async (url, originUrl = '') => await XSS.maybe(XSS.parseRequest({originUrl, url, method: "GET"}));
let n = async (...args) => !await y(...args);
Promise.all([
() => y("https://noscript.net/<script"),