lua-users home
lua-l archive

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

On Sat, Jul 14, 2012 at 10:54 AM, steve donovan
<> wrote:
> These functions have a paranoid mode in which they try to trap any
> attempt to set up loops. They also suppress the default string
> metatable temporarily so that people can't call potentially dangerous
> string methods.  This code works for both Lua 5.1 and 5.2, which have
> somewhat different load methods.
> (If anybody knows of a way to break the sandbox here, I'd be happy to hear)

Cant you just get back the old string metatable with
getmetatable('').old__index and therefore access all those functions?
You should hide it outside the provided environment...