security fix for WorldEdit

see https://forum.minetest.net/viewtopic.php?t=17601 for details
master
Martin Doege 2017-05-16 15:01:12 +02:00
parent 55f1740618
commit 02d3cd6a01
1 changed files with 1 additions and 0 deletions

View File

@ -606,6 +606,7 @@ end)
worldedit.register_gui_function("worldedit_gui_lua", {
name = "Run Lua",
privs = minetest.chatcommands["/clearobjects"].privs,
get_formspec = function(name)
local code = gui_code[name]
return "size[8,6.5]" .. worldedit.get_formspec_header("worldedit_gui_lua") ..