Commit 0d966b2
feat: protect URL path integrity from unsafe interpolated values
Path parameters containing `/`, `#`, or other reserved characters would
corrupt the URL structure. A tagged template literal now applies
encodeURIComponent to all interpolated path segments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 73b3141 commit 0d966b2
1 file changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
139 | 163 | | |
140 | 164 | | |
141 | 165 | | |
| |||
786 | 810 | | |
787 | 811 | | |
788 | 812 | | |
789 | | - | |
790 | | - | |
791 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
792 | 817 | | |
793 | 818 | | |
794 | 819 | | |
| |||
0 commit comments