http://pastebin.com/SmHTkBQe
Usage:
new(function:sandboxed function, table:table used for the function environment, table:ignores table indexes (indicies?) from the underlying environment, table:underlying environment) All of the parameters are optional.
Example:
local func = loadfile("test")
local env = { cheese = "garlic" }
sand.new(func, env, { lw = true, debug = true }, getfenv())
I'm not asking about fs safety. My question is, that is it possible, to access / break out to parent fenv using this sandbox?
//off-topic: there should be a topic about sandboxes, and breaking methods
Edited by MindenCucc, 13 May 2015 - 09:43 PM.











