Escape error messages in error dialog

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

@ -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