Mark 'code' as private as well

Saves on bandwidth, however the code is still accessible via the formspec.
This commit is contained in:
luk3yx 2018-09-18 07:55:53 +12:00 committed by sfan5
parent 8808bb8911
commit 028c290cd7

View File

@ -616,6 +616,7 @@ end
local function reset_formspec(meta, code, errmsg) local function reset_formspec(meta, code, errmsg)
meta:set_string("code", code) meta:set_string("code", code)
meta:mark_as_private("code")
code = minetest.formspec_escape(code or "") code = minetest.formspec_escape(code or "")
errmsg = minetest.formspec_escape(tostring(errmsg or "")) errmsg = minetest.formspec_escape(tostring(errmsg or ""))
meta:set_string("formspec", "size[12,10]".. meta:set_string("formspec", "size[12,10]"..