diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-18 08:48:45 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-18 08:48:45 +0200 |
commit | 0962147cc8fa92e5a79458bf1270ded51c9a4433 (patch) | |
tree | 81ff03cb91dd5dfddb914cc082a2d4677378c6ab /src | |
parent | 62c8bd5fe6b630e1a1c47edc3725eafb7b859c2a (diff) |
Gopher: Link paths must be URL-encoded
IssueID #168
Diffstat (limited to 'src')
-rw-r--r-- | src/gopher.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gopher.c b/src/gopher.c index 229ff9f4..0a7489ba 100644 --- a/src/gopher.c +++ b/src/gopher.c | |||
@@ -114,7 +114,8 @@ static iBool convertSource_Gopher_(iGopher *d) { | |||
114 | cstr_Rangecc(domain), | 114 | cstr_Rangecc(domain), |
115 | cstr_Rangecc(port), | 115 | cstr_Rangecc(port), |
116 | lineType, | 116 | lineType, |
117 | cstr_Rangecc(path), | 117 | cstrCollect_String( |
118 | urlEncodeExclude_String(collectNewRange_String(path), "/")), | ||
118 | cstr_Rangecc(text)); | 119 | cstr_Rangecc(text)); |
119 | appendData_Block(d->output, constBegin_String(buf), size_String(buf)); | 120 | appendData_Block(d->output, constBegin_String(buf), size_String(buf)); |
120 | iEndCollect(); | 121 | iEndCollect(); |