diff options
author | ShadowNinja <shadowninja@minetest.net> | 2016-02-18 16:06:07 -0500 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-02-19 14:52:10 +0000 |
commit | 4827ee1258ac9d68808ca4e2a9cb88bf49473e6b (patch) | |
tree | e2900cf20cb7aed59fb69e94b97784e02843e0cd /builtin/mainmenu/init.lua | |
parent | 997be666e37e9494bb92a50521b4b749156a609c (diff) | |
download | minetest-4827ee1258ac9d68808ca4e2a9cb88bf49473e6b.tar.gz minetest-4827ee1258ac9d68808ca4e2a9cb88bf49473e6b.tar.bz2 minetest-4827ee1258ac9d68808ca4e2a9cb88bf49473e6b.zip |
Require request_insecure_environment to be called from the mod's main scope
Previously you could steal a secure environment from a trusted mod by wrapping
request_insecure_environment with some code like this:
local rie_cp = minetest.request_insecure_environment
local stolen_ie
function minetest.request_insecure_environment()
local ie = rie_cp()
stolen_ie = stolen_ie or ie
return ie
end
Diffstat (limited to 'builtin/mainmenu/init.lua')
0 files changed, 0 insertions, 0 deletions