forked from Mirrorlandia_minetest/mesecons
Mark 'code' as private as well
Saves on bandwidth, however the code is still accessible via the formspec.
This commit is contained in:
parent
8808bb8911
commit
028c290cd7
@ -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]"..
|
||||
|
Loading…
Reference in New Issue
Block a user