File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
javascript/ql/test/query-tests/Security/CWE-918 Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments