projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32577be
)
luci-0.9: merge r5165
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 29 Jul 2009 04:36:07 +0000
(
04:36
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 29 Jul 2009 04:36:07 +0000
(
04:36
+0000)
libs/core/luasrc/util.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/util.lua
b/libs/core/luasrc/util.lua
index
9747a44
..
84c63f2
100644
(file)
--- 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