Changeset

4900:d885ca14362d

certmanager: tonumber() (fix for 0b8134015635)
author Matthew Wild <mwild1@gmail.com>
date Sat, 19 May 2012 21:57:40 +0100
parents 4899:0b8134015635
children 4901:05ea6c1ae393
files core/certmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Sat May 19 21:53:43 2012 +0100
+++ b/core/certmanager.lua	Sat May 19 21:57:40 2012 +0100
@@ -18,7 +18,7 @@
 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"