mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 09:24:24 +02:00
- add lua's io package to unsafe list
This commit is contained in:
@@ -75,6 +75,18 @@ LuaScript::LuaScript() {
|
||||
lua_pushnil(luaState);
|
||||
lua_setfield(luaState, -2, "exit");
|
||||
|
||||
lua_getglobal(luaState, "io");
|
||||
lua_pushnil(luaState);
|
||||
lua_setfield(luaState, -2, "open");
|
||||
lua_pushnil(luaState);
|
||||
lua_setfield(luaState, -2, "close");
|
||||
lua_pushnil(luaState);
|
||||
lua_setfield(luaState, -2, "write");
|
||||
lua_pushnil(luaState);
|
||||
lua_setfield(luaState, -2, "read");
|
||||
lua_pushnil(luaState);
|
||||
lua_setfield(luaState, -2, "flush");
|
||||
|
||||
lua_pushnil(luaState);
|
||||
lua_setglobal(luaState, "loadfile");
|
||||
lua_pushnil(luaState);
|
||||
|
Reference in New Issue
Block a user