Lua: delete loadstring()
Fixes the vulnerability introduced in commit 52ae31efb2
.
This commit is contained in:
parent
aa73b83600
commit
6450bada57
1 changed files with 2 additions and 0 deletions
|
@ -550,6 +550,8 @@ lua_kernel_base::lua_kernel_base()
|
|||
|
||||
lua_pushcfunction(L, intf_load);
|
||||
lua_setglobal(L, "load");
|
||||
lua_pushnil(L);
|
||||
lua_setglobal(L, "loadstring");
|
||||
|
||||
cmd_log_ << "Initializing package repository...\n";
|
||||
// Create the package table.
|
||||
|
|
Loading…
Add table
Reference in a new issue