Skip to content

Commit

Permalink
fix: replace all occurrences in path parameter sanitization (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael M authored Oct 27, 2023
2 parents 4a1b6ba + 75af9ca commit 8d92340
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ class PathParameter extends Parameter {
// @ts-ignore
serializeValue(value: any, separator = ','): string {
var result = typeof value === 'string' ? encodeURIComponent(value) : super.serializeValue(value, separator);
result = result.replace('%3D', '=');
result = result.replace('%3B', ';');
result = result.replace('%2C', ',');
result = result.replace(/%3D/g, '=');
result = result.replace(/%3B/g, ';');
result = result.replace(/%2C/g, ',');
return result;
}
}
Expand Down

0 comments on commit 8d92340

Please sign in to comment.