Repository navigation
Commit e5736f9
fix(shared): reject nested brackets and trailing dots in mapped loopback hosts
The mapped parser normalizes again, so a host such as `[[::ffff:7f00:1]]`
or `[::ffff:7f00:1.]` still reached it as a valid literal. Check the literal
once, with at most one matching pair of brackets removed, before parsing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent f608e0a commit e5736f9
2 files changed
Lines changed: 7 additions & 6 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
0 commit comments