From dd4ba4d3ea5bebb8bff9766178e29ea95c298258 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 19 May 2012 21:57:40 +0100 Subject: certmanager: tonumber() (fix for 0b8134015635) --- core/certmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/certmanager.lua b/core/certmanager.lua index f8f449c9..d524a07e 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -18,7 +18,7 @@ local resolve_path = configmanager.resolve_relative_path; local config_path = prosody.paths.config; local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); -local luasec_has_noticket = luasec_major>0 or luasec_minor>=4; +local luasec_has_noticket = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4; module "certmanager" -- cgit v1.2.3