Skip to content

Commit

Permalink
fix: replace all occurrences in path parameter sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael M committed Oct 27, 2023
1 parent 4a1b6ba commit 75af9ca
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 75af9ca

Please sign in to comment.