diff --git a/src/scripting.c b/src/scripting.c index 652cf140c..11adcf282 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -839,6 +839,8 @@ void luaLoadLibraries(lua_State *lua) { void luaRemoveUnsupportedFunctions(lua_State *lua) { lua_pushnil(lua); lua_setglobal(lua,"loadfile"); + lua_pushnil(lua); + lua_setglobal(lua,"dofile"); } /* This function installs metamethods in the global table _G that prevent