From 9a664f7b3b6a5315983317b0e47128b809bc5531 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 29 Feb 2020 19:01:45 +0100 Subject: Refactored XSS filter into an asynchronous worker to better handle DOS attempts. --- src/test/XSS_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') 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/