summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-12 12:18:57 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-12 12:20:32 +0200
commit1abe34f7a061932f4bf433c3e99b804588272536 (patch)
treeef7ab6b1bc288b8487a1c5af4fa2b5c4479be0bb /src/gmutil.c
parent341519487778bf7d006c2c896aadde1faa3f905b (diff)
Fixed: Percent-encode spaces when copying
IssueID #112
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index ab9a8eea..69fa6d9f 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -327,6 +327,12 @@ void urlEncodeSpaces_String(iString *d) {
327 } 327 }
328} 328}
329 329
330const iString *withSpacesEncoded_String(const iString *d) {
331 iString *enc = copy_String(d);
332 urlEncodeSpaces_String(enc);
333 return collect_String(enc);
334}
335
330const iString *feedEntryOpenCommand_String(const iString *url, int newTab) { 336const iString *feedEntryOpenCommand_String(const iString *url, int newTab) {
331 if (!isEmpty_String(url)) { 337 if (!isEmpty_String(url)) {
332 iString *cmd = collectNew_String(); 338 iString *cmd = collectNew_String();