mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Removed dofile() from Lua
This commit is contained in:
@@ -451,6 +451,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
|
||||
|
||||
Reference in New Issue
Block a user