1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 08:55:01 -05:00

Escape error messages in error dialog

This commit is contained in:
PilzAdam 2014-01-06 18:59:14 +01:00
parent 92aa38bdfc
commit 3e728e722a

View File

@ -178,7 +178,7 @@ function update_menu()
if gamedata.errormessage ~= nil then
formspec = "size[12,5.2]" ..
"textarea[1,2;10,2;;ERROR: " ..
gamedata.errormessage ..
engine.formspec_escape(gamedata.errormessage) ..
";]"..
"button[4.5,4.2;3,0.5;btn_error_confirm;" .. fgettext("Ok") .. "]"
else