From: PilzAdam Date: Mon, 6 Jan 2014 17:59:14 +0000 (+0100) Subject: Escape error messages in error dialog X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=3e728e722a788350718046daaf36f9a9c14ef1d1;p=zefram%2Fminetest%2Fminetest_engine.git Escape error messages in error dialog --- diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index 73f04361..d8c2b63e 100644 --- a/builtin/mainmenu.lua +++ b/builtin/mainmenu.lua @@ -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