X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Frpc%2Fluasrc%2Fjsonrpc.lua;fp=modules%2Frpc%2Fluasrc%2Fjsonrpc.lua;h=c4fed2accb816b1ef1416ff9422a5af83dd69413;hp=84a7f7056c6525e1c53f71c639d2fbe5be293cec;hb=0c5dc7bc77a4fd7d7f0d965e3185e2df4c608f05;hpb=8e6d1e682afee81fb4199ad494195c23e4381af5 diff --git a/modules/rpc/luasrc/jsonrpc.lua b/modules/rpc/luasrc/jsonrpc.lua index 84a7f7056..c4fed2acc 100644 --- a/modules/rpc/luasrc/jsonrpc.lua +++ b/modules/rpc/luasrc/jsonrpc.lua @@ -23,12 +23,12 @@ function resolve(mod, method) if not type(mod) == "table" then break end - mod = mod[path[j]] + mod = rawget(mod, path[j]) if not mod then break end end - mod = type(mod) == "table" and mod[path[#path]] or nil + mod = type(mod) == "table" and rawget(mod, path[#path]) or nil if type(mod) == "function" then return mod end