From 319434084b611351dc9936d7fd500294eeb174d9 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Sun, 6 Oct 2024 21:13:09 +0300 Subject: [PATCH] some gemini compat improvements --- bfg.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bfg.tcl b/bfg.tcl index 704c665..67a4cf1 100755 --- a/bfg.tcl +++ b/bfg.tcl @@ -675,8 +675,8 @@ proc render_handler_gemini {prevurl rooturl path body textw} { if {[llength $statusparts] > 1} { set statusinfo [join [lrange $statusparts 1 end] " "] } - if {($statuscode < 10) || ($statuscode > 100)} { - $textw insert end "Error $statuscode: $statusinfo\n" errormsg + if {($statuscode < 10) || ($statuscode > 99)} { + $textw insert end "Invalid status code $statuscode: $statusinfo\n" errormsg return } # reset redirect counter if the code group is not 3