mediawiki-extensions-Scribunto/engines
Brad Jorsch 1efe182e40 Hide mw.makeProtectedEnvFuncs from modules
Allowing a module to call mw.makeProtectedEnvFuncs() lets it bypass the
allowEnvFuncs setting. It can also be used to manipulate the global
tables that other modules' sandboxes will be copied from.

And for paranoia's sake, let's tighten up what setfenv is allowed to
set. This requires changing a unit test, because it is no longer
sane to do something like

 env.setfenv, env.getfenv = mw.makeProtectedEnvFuncs( { [env] = true }, {} )

Nothing real does this, it was only in the unit test.

Change-Id: I8e0d83bb0980ee869af3ac4413afd211717ca92f
2013-02-14 16:49:15 -05:00
..
LuaCommon Hide mw.makeProtectedEnvFuncs from modules 2013-02-14 16:49:15 -05:00
LuaSandbox Lua library support functions 2013-01-31 12:40:39 -05:00
LuaStandalone Lua library support functions 2013-01-31 12:40:39 -05:00