From: Jo-Philipp Wich Date: Mon, 9 Feb 2015 12:03:44 +0000 (+0100) Subject: luci-base: pass session timeout as integer X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec90cd69ed80ea4dfe8a9d44a42b155470c47b6b;p=oweals%2Fluci.git luci-base: pass session timeout as integer Signed-off-by: Jo-Philipp Wich --- 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", {