Commit 2d0a41c
committed
Fix safeNextPath: reject paths containing colon characters
Add a value.includes(':') check to the safeNextPath guard conditions
to block scheme-like injection patterns (e.g. /settings:debug).
This matches the security intent expressed in the test suite.1 parent 82c54ab commit 2d0a41c
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
0 commit comments