Commit aa6a722
committed
fix(explorer): encode RFC 3986 reserved chars in query parameter values
Replaces the manual space-only encoding with encodeURIComponent for query
parameters, so reserved characters like ':' are correctly percent-encoded
(e.g. ':' → '%3A') when building request URLs.
Path parameters retain the existing whitespace-only encoding since they
are handled separately downstream in setPathParams.
Closes #13121 parent ba1f51d commit aa6a722
1 file changed
Lines changed: 4 additions & 2 deletions
File tree
- packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments