Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
59e1357b
Commit
59e1357b
authored
Oct 25, 2012
by
Adam Baldwin
Committed by
antirez
May 08, 2016
Browse files
Removed dofile() from Lua
parent
6d567d0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
59e1357b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment