mirror of
https://github.com/mt-mods/signs_lib.git
synced 2024-12-23 07:40:20 +01:00
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)
This commit is contained in:
parent
3c824aedf8
commit
8527f1d5b2
2
api.lua
2
api.lua
@ -1151,7 +1151,7 @@ function get_sign_formspec(pos, nodename)
|
|||||||
|
|
||||||
local formspec = {
|
local formspec = {
|
||||||
"size[6,4]",
|
"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]",
|
"background[-0.5,-0.5;7,5;signs_lib_sign_bg.jpg]",
|
||||||
"button_exit[2,3.4;2,1;ok;" .. S("Write") .. "]"
|
"button_exit[2,3.4;2,1;ok;" .. S("Write") .. "]"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user