Fix prelude/url (#7855)
This commit is contained in:
@@ -4,7 +4,7 @@ export function query(obj: {}): string {
|
||||
.reduce((a, [k, v]) => (a[k] = v, a), {} as Record<string, any>);
|
||||
|
||||
return Object.entries(params)
|
||||
.map((e) => `${e[0]}=${e[1]}`)
|
||||
.map((e) => `${e[0]}=${encodeURIComponent(e[1])}`)
|
||||
.join('&');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user