From 3665e17a0d83aa58dc8de6357e74db3ad2b7bbc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Thu, 18 Feb 2021 08:48:45 +0200 Subject: [PATCH 1/1] Gopher: Link paths must be URL-encoded IssueID #168 --- src/gopher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.34.1