wplua: expose setmetatable / getmetatable in the sandbox
This commit is contained in:

committed by
Julian Bouzas

parent
374e4ecaff
commit
c6c740e94a
@@ -28,6 +28,7 @@ function create_sandbox_env()
|
|||||||
pcall select print tostring type xpcall require
|
pcall select print tostring type xpcall require
|
||||||
table string math package utf8 debug coroutine
|
table string math package utf8 debug coroutine
|
||||||
os.clock os.difftime os.time os.date os.getenv
|
os.clock os.difftime os.time os.date os.getenv
|
||||||
|
setmetatable getmetatable
|
||||||
]]):gsub('%S+', populate_env)
|
]]):gsub('%S+', populate_env)
|
||||||
|
|
||||||
-- Additionally export everything in SANDBOX_EXPORT
|
-- Additionally export everything in SANDBOX_EXPORT
|
||||||
|
Reference in New Issue
Block a user