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