lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>>>> "Leonardo" == Leonardo Gomes <leonardo.alves.gomes@usp.br> writes:

 Leonardo> If you control the code that loads the untrusted Lua script
 Leonardo> and don't intend on modifying lua itself, I think you can
 Leonardo> achieve a "sandboxed" environment by using the setfenv
 Leonardo> function.

setfenv doesn't exist in 5.2+; in current versions you use the
environment parameter to load() instead.

-- 
Andrew.