From: Jo-Philipp Wich Date: Wed, 29 Jul 2009 04:36:07 +0000 (+0000) Subject: luci-0.9: merge r5165 X-Git-Tag: 0.9.0~146 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=398e0aa0a8c190acd61326999ca6c5890d67926b;p=oweals%2Fluci.git luci-0.9: merge r5165 --- diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index 9747a4486..84c63f240 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -49,8 +49,10 @@ getmetatable("").__mod = function(a, b) if not b then return a elseif type(b) == "table" then + for k, _ in pairs(b) do if type(b[k]) == "userdata" then b[k] = tostring(b[k]) end end return a:format(unpack(b)) else + if type(b) == "userdata" then b = tostring(b) end return a:format(b) end end