Commit 38d1d18
committed
test(gateway): cover C1 replacement in config lookup-path log sanitizer
Add a regression asserting that a config path carrying a C1 byte (U+009B CSI)
is replaced with '?' by sanitizeLookupPathForLog before it reaches the
config.openFile warning log, and that no raw C1 byte survives. Assertion is
scoped to the sanitized filename so it is OS-path-prefix independent.
Signed-off-by: lsr911 <[email protected]>1 parent f217516 commit 38d1d18
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
148 | 169 | | |
149 | 170 | | |
150 | 171 | | |
| |||
0 commit comments