Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #264 from cheapie/master
Escape command block commands for formspec
  • Loading branch information
Jeija committed Apr 21, 2016
2 parents b487783 + 2dea21f commit c4f0c5c
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 c4f0c5c

Please sign in to comment.