Skip to content

Commit f4f96ce

Browse files
committed
use new source in client-side-url-redirect test
1 parent cb7de27 commit f4f96ce

File tree

1 file changed

+6
-2
lines changed
  • javascript/ql/test/query-tests/Security/CWE-601/ClientSideUrlRedirect

1 file changed

+6
-2
lines changed

javascript/ql/test/query-tests/Security/CWE-601/ClientSideUrlRedirect/tst13.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ function foo() {
4343
var el = document.createElement("script");
4444
el.src = payload;
4545
document.body.appendChild(el); // NOT OK
46-
47-
importScripts(payload); // NOT OK
4846
}
47+
48+
(function () {
49+
self.onmessage = function (e) {
50+
importScripts(e); // NOT OK
51+
}
52+
})();

0 commit comments

Comments
 (0)