Skip to content

Commit 4613280

Browse files
committed
JS: Accept an alert
1 parent 212915a commit 4613280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/test/query-tests/Security/CWE-918/clientSide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function MyComponent() {
1111
const query = window.location.search.substring(1);
1212
request('https://example.com/api/' + query + '/id'); // $ Alert[js/client-side-request-forgery]
1313
request('https://example.com/api?q=' + query);
14-
request('https://example.com/api/' + window.location.search); // likely OK - but currently flagged anyway
14+
request('https://example.com/api/' + window.location.search); // $ Alert[js/client-side-request-forgery] - likely OK - but currently flagged anyway
1515

1616
const fragment = window.location.hash.substring(1);
1717
request('https://example.com/api/' + fragment + '/id'); // $ Alert[js/client-side-request-forgery]

0 commit comments

Comments
 (0)