Add context to loadstring calls
This commit is contained in:
parent
81276b000c
commit
ef17beee8b
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ local function read_or_execute(file_path, args, return_type)
|
||||||
|
|
||||||
-- Either execute the data or leave it unmodified
|
-- Either execute the data or leave it unmodified
|
||||||
if return_type == "exec_result" or return_type == "exec_boolean" then
|
if return_type == "exec_result" or return_type == "exec_boolean" then
|
||||||
local func = loadstring(result)
|
local func = loadstring(result, file_path)
|
||||||
result = func(args)
|
result = func(args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue