Skip to content

Commit

Permalink
Mark 'code' as private as well
Browse files Browse the repository at this point in the history
Saves on bandwidth, however the code is still accessible via the formspec.
  • Loading branch information
luk3yx authored and sfan5 committed Sep 18, 2018
1 parent 8808bb8 commit 028c290
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesecons_luacontroller/init.lua
Expand Up @@ -616,6 +616,7 @@ end

local function reset_formspec(meta, code, errmsg)
meta:set_string("code", code)
meta:mark_as_private("code")
code = minetest.formspec_escape(code or "")
errmsg = minetest.formspec_escape(tostring(errmsg or ""))
meta:set_string("formspec", "size[12,10]"..
Expand Down

0 comments on commit 028c290

Please sign in to comment.