Skip to content

Commit 60c099e

Browse files
author
Gareth Harper
committed
now URI encodes query parameters
1 parent c002167 commit 60c099e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/autocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class AutoComplete {
605605
method: string = params._HttpMethod(),
606606
url: string = params._Url(),
607607
queryParams: string = params._Pre(),
608-
queryParamsStringify: string = params._QueryArg() + "=" + queryParams;
608+
queryParamsStringify: string = encodeURIComponent(params._QueryArg()) + "=" + encodeURIComponent(queryParams);
609609

610610
if (method.match(/^GET$/i)) {
611611
if (url.indexOf("?") !== -1) {

0 commit comments

Comments
 (0)