Update url_search_params.ts
Values need to be encoded on `toString()` Closes #7686
This commit is contained in:
parent
0795dd307b
commit
6f3a6a55a0
|
@ -122,7 +122,8 @@ export class URLSearchParams {
|
|||
|
||||
toString(): string {
|
||||
var paramsList: string[] = [];
|
||||
this.paramsMap.forEach((values, k) => { values.forEach(v => paramsList.push(k + '=' + v)); });
|
||||
this.paramsMap.forEach(
|
||||
(values, k) => { values.forEach(v => paramsList.push(k + '=' + encodeURIComponent(v))); });
|
||||
return paramsList.join('&');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue