mirror of
https://github.com/fluencelabs/redis
synced 2025-05-21 14:41:21 +00:00
Removed dofile() from Lua
This commit is contained in:
parent
6d567d0c6f
commit
59e1357bff
@ -598,6 +598,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user