summaryrefslogtreecommitdiff
path: root/src/gopher.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-18 08:48:45 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-18 08:48:45 +0200
commit0962147cc8fa92e5a79458bf1270ded51c9a4433 (patch)
tree81ff03cb91dd5dfddb914cc082a2d4677378c6ab /src/gopher.c
parent62c8bd5fe6b630e1a1c47edc3725eafb7b859c2a (diff)
Gopher: Link paths must be URL-encoded
IssueID #168
Diffstat (limited to 'src/gopher.c')
-rw-r--r--src/gopher.c3
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();