From 0962147cc8fa92e5a79458bf1270ded51c9a4433 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 18 Feb 2021 08:48:45 +0200 Subject: Gopher: Link paths must be URL-encoded IssueID #168 --- src/gopher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gopher.c') 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) { cstr_Rangecc(domain), cstr_Rangecc(port), lineType, - cstr_Rangecc(path), + cstrCollect_String( + urlEncodeExclude_String(collectNewRange_String(path), "/")), cstr_Rangecc(text)); appendData_Block(d->output, constBegin_String(buf), size_String(buf)); iEndCollect(); -- cgit v1.2.3