Skip to content

Commit 028c290

Browse files
luk3yxsfan5
authored andcommittedSep 18, 2018
Mark 'code' as private as well
Saves on bandwidth, however the code is still accessible via the formspec.
1 parent 8808bb8 commit 028c290

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎mesecons_luacontroller/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ end
616616

617617
local function reset_formspec(meta, code, errmsg)
618618
meta:set_string("code", code)
619+
meta:mark_as_private("code")
619620
code = minetest.formspec_escape(code or "")
620621
errmsg = minetest.formspec_escape(tostring(errmsg or ""))
621622
meta:set_string("formspec", "size[12,10]"..

0 commit comments

Comments
 (0)
Please sign in to comment.