diff options
author | khonkhortisan <khonkhortisan@gmail.com> | 2013-08-29 14:14:04 -0700 |
---|---|---|
committer | khonkhortisan <khonkhortisan@gmail.com> | 2013-08-29 14:14:04 -0700 |
commit | 75ca00f51e8563783366195bb28cc37adafe5d3d (patch) | |
tree | e1053ddc4b8a28e72b47b9086d6ac28824ebe19f /mesecons_microcontroller/init.lua | |
parent | d0fdefb5a6fdbcb39fb5d25580fce3717503c6b7 (diff) |
Escape microcontroller code in formspec
Diffstat (limited to 'mesecons_microcontroller/init.lua')
-rw-r--r-- | mesecons_microcontroller/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua index e61c2a0..f49d9dc 100644 --- a/mesecons_microcontroller/init.lua +++ b/mesecons_microcontroller/init.lua @@ -116,7 +116,7 @@ minetest.register_node(nodename, { meta:set_string("code", fields.code) meta:set_string("formspec", "size[9,2.5]".. - "field[0.256,-0.2;9,2;code;Code:;"..fields.code.."]".. + "field[0.256,-0.2;9,2;code;Code:;"..minetest.formspec_escape(fields.code).."]".. "button[0 ,0.2;1.5,3;band;AND]".. "button[1.5,0.2;1.5,3;bxor;XOR]".. "button[3 ,0.2;1.5,3;bnot;NOT]".. |