From: Daniel Carl <danielcarl@gmx.de>
Date: Fri, 21 Nov 2014 22:40:37 +0000 (+0100)
Subject: Fixed missed uri escaping for '+' (#152).
X-Git-Url: https://git.owens.tech/assets/editable-focus.html/assets/editable-focus.html/git?a=commitdiff_plain;h=d639a4f13c3ccc52eb576994709b9c1004ce2212;p=vimb.git

Fixed missed uri escaping for '+' (#152).
---

diff --git a/src/shortcut.c b/src/shortcut.c
index af8eab4..714765a 100644
--- a/src/shortcut.c
+++ b/src/shortcut.c
@@ -83,7 +83,7 @@ char *shortcut_get_uri(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 = soup_uri_encode(query, "&+");
         uri          = util_str_replace("$0", quoted_param, tmpl);
         g_free(quoted_param);
 
@@ -140,7 +140,7 @@ char *shortcut_get_uri(const char *string)
         if (token->len) {
             char *new;
 
-            quoted_param = soup_uri_encode(token->str, "&");
+            quoted_param = soup_uri_encode(token->str, "&+");
             new = util_str_replace((char[]){'$', current_num + '0', '\0'}, quoted_param, uri);
             g_free(quoted_param);
             g_free(uri);