mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
JS: Add test
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
| tst16.js:5 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
|
||||
| tst16.js:6 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
|
||||
| tst16.js:7 | expected an alert, but found none | NOT OK | ClientSideUrlRedirectConsistency |
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import queryString from 'query-string';
|
||||
import querystringify from 'querystringify';
|
||||
|
||||
function foo() {
|
||||
location.href = queryString.parse(location.search).data; // NOT OK
|
||||
location.href = queryString.extract(location.search); // NOT OK
|
||||
location.href = querystringify.parse(location.search).data; // NOT OK
|
||||
}
|
||||
Reference in New Issue
Block a user