diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-12 12:18:57 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-12 12:20:32 +0200 |
commit | 1abe34f7a061932f4bf433c3e99b804588272536 (patch) | |
tree | ef7ab6b1bc288b8487a1c5af4fa2b5c4479be0bb /src/gmutil.c | |
parent | 341519487778bf7d006c2c896aadde1faa3f905b (diff) |
Fixed: Percent-encode spaces when copying
IssueID #112
Diffstat (limited to 'src/gmutil.c')
-rw-r--r-- | src/gmutil.c | 6 |
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 | ||
330 | const iString *withSpacesEncoded_String(const iString *d) { | ||
331 | iString *enc = copy_String(d); | ||
332 | urlEncodeSpaces_String(enc); | ||
333 | return collect_String(enc); | ||
334 | } | ||
335 | |||
330 | const iString *feedEntryOpenCommand_String(const iString *url, int newTab) { | 336 | const 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(); |