summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2016-05-08 18:04:41 +0200
committerSalvatore Sanfilippo <antirez@gmail.com>2016-05-08 18:04:41 +0200
commitb44ad302d2337b45a02b6a3e4920089a48292c6d (patch)
treec2c57befe59f64e35fdcd89af31a6b0f9d492e1f
parentf9ee039a76f55df4380c68ad68bcaf9573fd7d09 (diff)
parent45fa113d004b98197883ba26a11ccf562a315d62 (diff)
downloadredis-b44ad302d2337b45a02b6a3e4920089a48292c6d.tar.gz
Merge pull request #732 from evilpacket/remove_dofile
Removes dofile() from Lua
-rw-r--r--src/scripting.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 652cf140c..11adcf282 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -839,6 +839,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