From b9e0cf4b0b644a45bb417f65d57f58ed00bc8221 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Wed, 16 Feb 2022 09:45:38 +0100 Subject: [PATCH] fix for gopher selectors --- offpunk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/offpunk.py b/offpunk.py index d41ba75..5d11911 100755 --- a/offpunk.py +++ b/offpunk.py @@ -430,6 +430,8 @@ class GopherRenderer(AbstractRenderer): if itemtype == "h" and path.startswith("URL:"): url = path[4:] else: + if not path.startswith("/"): + path = "/"+path url = "gopher://%s%s/%s%s" %(host,port,itemtype,path) linkline = url + " " + name links.append(linkline)