From 2f24e9404c2c01251826e98286dab5df7d9e5ce7 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 30 Aug 2020 08:32:09 +0300 Subject: Maximum number of redirects Stop opening links automatically after five redirects. --- src/gmutil.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gmutil.c') diff --git a/src/gmutil.c b/src/gmutil.c index 41f0dd20..131734b2 100644 --- a/src/gmutil.c +++ b/src/gmutil.c @@ -232,6 +232,11 @@ static const struct { "Redirect to Non-Gemini URL", "The server attempted to redirect us to a non-Gemini URL. Here is the link so you " "can open it manually if appropriate."} }, + { tooManyRedirects_GmStatusCode, + { 0x27a0, /* dashed arrow */ + "Too Many Redirects", + "You may be stuck in a redirection loop. The next redirected URL is below if you " + "want to continue manually."} }, { temporaryFailure_GmStatusCode, { 0x1f50c, /* electric plug */ "Temporary Failure", -- cgit v1.2.3