Skip to content

Commit

Permalink
Escape command block commands for formspec
Browse files Browse the repository at this point in the history
  • Loading branch information
cheapie committed Apr 21, 2016
1 parent b487783 commit 2dea21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_commandblock/init.lua
Expand Up @@ -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.."]" ..
Expand Down

0 comments on commit 2dea21f

Please sign in to comment.