diff options
Diffstat (limited to 'src/shortcut.c')
-rw-r--r-- | src/shortcut.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shortcut.c b/src/shortcut.c index 0a74977..906d734 100644 --- a/src/shortcut.c +++ b/src/shortcut.c @@ -92,7 +92,7 @@ char *shortcut_get_uri(Shortcut *sc, const char *string) max_num = get_max_placeholder(tmpl); /* if there are only $0 placeholders we don't need to split the parameters */ if (max_num == 0) { - quoted_param = soup_uri_encode(query, "&+"); + quoted_param = g_uri_escape_string(query, NULL, TRUE); uri = util_str_replace("$0", quoted_param, tmpl); g_free(quoted_param); @@ -149,7 +149,7 @@ char *shortcut_get_uri(Shortcut *sc, const char *string) if (token->len) { char *new; - quoted_param = soup_uri_encode(token->str, "&+"); + quoted_param = g_uri_escape_string(token->str, NULL, TRUE); new = util_str_replace((char[]){'$', current_num + '0', '\0'}, quoted_param, uri); g_free(quoted_param); g_free(uri); |