Merge pull request #1 from gvx/patch-1

Prevent leaking of args to global scope in lurker.initwrappers()
This commit is contained in:
rxi
2014-03-08 11:33:31 +00:00

View File

@@ -64,7 +64,7 @@ end
function lurker.initwrappers() function lurker.initwrappers()
for _, v in pairs(lovecallbacknames) do for _, v in pairs(lovecallbacknames) do
lurker.funcwrappers[v] = function(...) lurker.funcwrappers[v] = function(...)
args = {...} local args = {...}
xpcall(function() xpcall(function()
return lurker.lovefuncs[v] and lurker.lovefuncs[v](unpack(args)) return lurker.lovefuncs[v] and lurker.lovefuncs[v](unpack(args))
end, lurker.onerror) end, lurker.onerror)