Skip to content

Commit

Permalink
Add missing formspec escape (#34)
Browse files Browse the repository at this point in the history
* fix missing formspec escape

* formspec_escape at the correct place
  • Loading branch information
a-tour-ist authored Jan 23, 2024
1 parent 31a98e2 commit b24feb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moremesecons_commandblock/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local function initialize_data(meta)
local commands = meta:get_string("commands")
meta:set_string("formspec",
"invsize[9,5;]" ..
"textarea[0.5,0.5;8.5,4;commands;Commands;"..commands.."]" ..
"textarea[0.5,0.5;8.5,4;commands;Commands;"..minetest.formspec_escape(commands).."]" ..
"label[1,3.8;@nearest is replaced by the nearest player name ("..tostring(NEAREST_MAX_DISTANCE).." nodes max for the nearest distance)".."]" ..
"button_exit[3.3,4.5;2,1;submit;Submit]")
local owner = meta:get_string("owner")
Expand Down

0 comments on commit b24feb4

Please sign in to comment.