From 95def3aee044468504bb07633084afd49b085db3 Mon Sep 17 00:00:00 2001 From: Adam Baldwin Date: Thu, 25 Oct 2012 20:27:10 -0700 Subject: [PATCH] Removed dofile() from Lua --- src/scripting.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripting.c b/src/scripting.c index 0b72e9cd8..0a2ce1f33 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