Commit 945fe45
committed
all split()[0] are safe for url-redirect
1 parent a3fb138 commit 945fe45
File tree
2 files changed
+6
-1
lines changed- javascript/ql
- src/semmle/javascript/security/dataflow
- test/query-tests/Security/CWE-601/ClientSideUrlRedirect
2 files changed
+6
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
0 commit comments