From 329befea55f38511b46743ae9800852cde9f5cd8 Mon Sep 17 00:00:00 2001 From: Nate Ijams Date: Sun, 9 Jan 2022 14:23:20 -0600 Subject: [PATCH] Fix gopher length check. --- fhost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhost.py b/fhost.py index 97f727d..81f70ad 100755 --- a/fhost.py +++ b/fhost.py @@ -173,7 +173,7 @@ def shorten(url): # handler to convert gopher links to HTTP(S) proxy gopher = "gopher://" gopher_length = len(gopher) - if url[:length] == gopher: + if url[:gopher_length] == gopher: url = "https://gopher.tildeverse.org/{}".format(url[gopher_length:]) # handler to conver gemini links to HTTP(S) proxy -- 2.38.5