We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd6a9c6 commit 19cada3Copy full SHA for 19cada3
javascript/ql/test/query-tests/Security/CWE-601/ClientSideUrlRedirect/tst16.js
@@ -2,7 +2,7 @@ import queryString from 'query-string';
2
import querystringify from 'querystringify';
3
4
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
+ location.href = queryString.parse(location.search).data; // $ Alert
+ location.href = queryString.extract(location.search); // $ Alert
+ location.href = querystringify.parse(location.search).data; // $ Alert
8
}
0 commit comments