Skip to content

Commit 19cada3

Browse files
committed
JS: Migrate a new file from OK-style comments
1 parent fd6a9c6 commit 19cada3

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import queryString from 'query-string';
22
import querystringify from 'querystringify';
33

44
function foo() {
5-
location.href = queryString.parse(location.search).data; // NOT OK
6-
location.href = queryString.extract(location.search); // NOT OK
7-
location.href = querystringify.parse(location.search).data; // NOT OK
5+
location.href = queryString.parse(location.search).data; // $ Alert
6+
location.href = queryString.extract(location.search); // $ Alert
7+
location.href = querystringify.parse(location.search).data; // $ Alert
88
}

0 commit comments

Comments
 (0)