Skip to content

Commit

Permalink
Escape microcontroller code in formspec
Browse files Browse the repository at this point in the history
  • Loading branch information
khonkhortisan committed Aug 29, 2013
1 parent d0fdefb commit 75ca00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_microcontroller/init.lua
Expand Up @@ -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]"..
Expand Down

0 comments on commit 75ca00f

Please sign in to comment.