summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarter Kolwey <cheapiephp@gmail.com>2016-04-21 02:15:54 -0500
committerCarter Kolwey <cheapiephp@gmail.com>2016-04-21 02:15:54 -0500
commit2dea21f9ef4274830289d69dd946e771beb55625 (patch)
treecd3e3833d62845cf90febf05d065cb6bf8d0645a
parentb487783c239d75338254ae8bc7250ba6141d67a6 (diff)
downloadmesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar
mesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar.gz
mesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar.bz2
mesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar.xz
mesecons-2dea21f9ef4274830289d69dd946e771beb55625.zip
Escape command block commands for formspec
-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.."]" ..