Commit b44ad302 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #732 from evilpacket/remove_dofile

Removes dofile() from Lua
parents f9ee039a 45fa113d
...@@ -839,6 +839,8 @@ void luaLoadLibraries(lua_State *lua) { ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment