mod_admin_shell: Fix attempt to compare number with string
authorKim Alvefur <zash@zash.se>
Fri, 07 Apr 2023 13:04:15 +0200
changeset 13045 61b00bd20074
parent 13044 0cbe400ebab4
child 13046 0f05804e974d
mod_admin_shell: Fix attempt to compare number with string Missed the # in 93c1590b5951
plugins/mod_admin_shell.lua
--- a/plugins/mod_admin_shell.lua	Fri Apr 07 13:02:20 2023 +0200
+++ b/plugins/mod_admin_shell.lua	Fri Apr 07 13:04:15 2023 +0200
@@ -869,7 +869,7 @@
 		title = "Security";
 		description = "TLS version or security status";
 		key = "conn";
-		width = math.max(#"secure", "TLSvX.Y");
+		width = math.max(#"secure", #"TLSvX.Y");
 		mapper = function(conn, session)
 			if not session.secure then return "insecure"; end
 			if not conn or not conn:ssl() then return "secure" end