Removed dofile() from Lua

This commit is contained in:
Adam Baldwin
2016-05-08 18:05:05 +02:00
committed by antirez
parent 7ca8fbabe2
commit 95def3aee0
+2
View File
@@ -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