Remove a functions that we don't want to expose to the Redis scripting * environment. */
| 1073 | /* Remove a functions that we don't want to expose to the Redis scripting |
| 1074 | * environment. */ |
| 1075 | void luaRemoveUnsupportedFunctions(lua_State *lua) { |
| 1076 | lua_pushnil(lua); |
| 1077 | lua_setglobal(lua,"loadfile"); |
| 1078 | lua_pushnil(lua); |
| 1079 | lua_setglobal(lua,"dofile"); |
| 1080 | } |
| 1081 | |
| 1082 | /* This function installs metamethods in the global table _G that prevent |
| 1083 | * the creation of globals accidentally. |
no test coverage detected