From 35b96637d44f660b30fad5f03e07ce025a44017f Mon Sep 17 00:00:00 2001 From: Beha Date: Thu, 23 Mar 2017 14:05:48 -0400 Subject: Escape labels. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 233d66d..ce6cd22 100644 --- a/init.lua +++ b/init.lua @@ -466,7 +466,7 @@ for _,mode in ipairs({"on", "off"}) do for ji,jv in ipairs(motor.pnames) do if tonumber(jv) ~= pos.y then table.insert(tpnames, jv) - table.insert(tpnames_l, (motor.labels[ji] and motor.labels[ji] ~= "") and (jv.." - "..motor.labels[ji]) or jv) + table.insert(tpnames_l, (motor.labels[ji] and motor.labels[ji] ~= "") and (jv.." - "..minetest.formspec_escape(motor.labels[ji])) or jv) end end formspecs[sender:get_player_name()] = {pos, tpnames} -- cgit v1.2.3