From ec90cd69ed80ea4dfe8a9d44a42b155470c47b6b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 9 Feb 2015 13:03:44 +0100 Subject: [PATCH] luci-base: pass session timeout as integer Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index a80dd706e..f92af528e 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -333,7 +333,7 @@ function dispatch(request) return else if not sess then - local sdat = util.ubus("session", "create", { timeout = luci.config.sauth.sessiontime }) + local sdat = util.ubus("session", "create", { timeout = tonumber(luci.config.sauth.sessiontime) }) if sdat then local token = sys.uniqueid(16) util.ubus("session", "set", { -- 2.11.0