summaryrefslogtreecommitdiff
path: root/mesecons_commandblock
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_commandblock')
-rw-r--r--mesecons_commandblock/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_commandblock/init.lua b/mesecons_commandblock/init.lua
index 9cf9b13..b1a0c6f 100644
--- a/mesecons_commandblock/init.lua
+++ b/mesecons_commandblock/init.lua
@@ -43,7 +43,7 @@ minetest.register_chatcommand("hp", {
})
local function initialize_data(meta)
- local commands = meta:get_string("commands")
+ local commands = minetest.formspec_escape(meta:get_string("commands"))
meta:set_string("formspec",
"invsize[9,5;]" ..
"textarea[0.5,0.5;8.5,4;commands;Commands;"..commands.."]" ..