File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
javascript/ql/test/library-tests/TripleDot Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ function u1 ( ) {
2+ const searchParams = new URLSearchParams ( source ( "u1.1" ) ) ;
3+ sink ( searchParams . get ( "x" ) ) ; // $ MISSING: hasTaintFlow=u1.1
4+ sink ( searchParams . get ( unknown ( ) ) ) ; // $ MISSING: hasTaintFlow=u1.1
5+ sink ( searchParams . getAll ( "x" ) ) ; // $ MISSING: hasTaintFlow=u1.1
6+ sink ( searchParams . getAll ( unknown ( ) ) ) ; // $ MISSING: hasTaintFlow=u1.1
7+ }
8+
9+ function u2 ( ) {
10+ const url = new URL ( source ( "u2.1" ) ) ;
11+ sink ( url . searchParams . get ( "x" ) ) ; // $ MISSING: hasTaintFlow=u2.1
12+ sink ( url . searchParams . get ( unknown ( ) ) ) ; // $ MISSING: hasTaintFlow=u2.1
13+ sink ( url . searchParams . getAll ( "x" ) ) ; // $ MISSING: hasTaintFlow=u2.1
14+ sink ( url . searchParams . getAll ( unknown ( ) ) ) ; // $ MISSING: hasTaintFlow=u2.1
15+ }
You can’t perform that action at this time.
0 commit comments