Commit efe8dc6
committed
fix(sdk): also reject Windows-separator nav paths in the docs bundler
POSIX normalization misses backslash traversal, so a Windows-style path could
escape docs/ on a Windows build. Reject backslashes and both POSIX and Windows
absolute forms, keeping the normalized `..` traversal check.1 parent 0093ecf commit efe8dc6
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
0 commit comments