diff --git a/move_controller/flycontroller.lua b/move_controller/flycontroller.lua index 5606555..c23812f 100644 --- a/move_controller/flycontroller.lua +++ b/move_controller/flycontroller.lua @@ -61,8 +61,8 @@ local WRENCH_MENU = { local function formspec(nvm, meta) local status = meta:get_string("status") - local path = meta:contains("fs_path") and meta:get_string("fs_path") or - meta:contains("path") and meta:get_string("path") or "0,3,0" + local path = minetest.formspec_escape(meta:contains("fs_path") and meta:get_string("fs_path") or + meta:contains("path") and meta:get_string("path") or "0,3,0") return "size[8,6.7]" .. "style_type[textarea;font=mono;textcolor=#FFFFFF;border=true]" .. "box[0,-0.1;7.2,0.5;#c6e8ff]" .. diff --git a/move_controller/movecontroller.lua b/move_controller/movecontroller.lua index b68dbff..a9a4baa 100644 --- a/move_controller/movecontroller.lua +++ b/move_controller/movecontroller.lua @@ -60,7 +60,7 @@ local WRENCH_MENU = { local function formspec(nvm, meta) local status = meta:get_string("status") - local path = meta:contains("path") and meta:get_string("path") or "0,3,0" + local path = minetest.formspec_escape(meta:contains("path") and meta:get_string("path") or "0,3,0") local buttons if meta:get_string("opmode") == "move xyz" then buttons = "field[0.4,2.5;3.8,1;path;" .. S("Move distance") .. ";" .. path .. "]" ..