mirror of
https://github.com/fluencelabs/redis
synced 2025-03-21 10:00:51 +00:00
Merge pull request #732 from evilpacket/remove_dofile
Removes dofile() from Lua
This commit is contained in:
commit
b44ad302d2
@ -839,6 +839,8 @@ void luaLoadLibraries(lua_State *lua) {
|
|||||||
void luaRemoveUnsupportedFunctions(lua_State *lua) {
|
void luaRemoveUnsupportedFunctions(lua_State *lua) {
|
||||||
lua_pushnil(lua);
|
lua_pushnil(lua);
|
||||||
lua_setglobal(lua,"loadfile");
|
lua_setglobal(lua,"loadfile");
|
||||||
|
lua_pushnil(lua);
|
||||||
|
lua_setglobal(lua,"dofile");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function installs metamethods in the global table _G that prevent
|
/* This function installs metamethods in the global table _G that prevent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user