From 8527f1d5b2a988492769580f63542061742aa3ba Mon Sep 17 00:00:00 2001 From: VanessaE Date: Thu, 21 Jan 2021 13:32:28 -0500 Subject: [PATCH] writing [ or ] into a sign breaks the form for some users the exact effect varies with client behavior and the particular text contents. (characters erased, disappering formspec elements, loss of text) --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index c7f2e01..9ef07c3 100644 --- a/api.lua +++ b/api.lua @@ -1151,7 +1151,7 @@ function get_sign_formspec(pos, nodename) local formspec = { "size[6,4]", - "textarea[0,-0.3;6.5,3;text;;" .. txt .. "]", + "textarea[0,-0.3;6.5,3;text;;" .. minetest.formspec_escape(txt) .. "]", "background[-0.5,-0.5;7,5;signs_lib_sign_bg.jpg]", "button_exit[2,3.4;2,1;ok;" .. S("Write") .. "]" }