Skip to content

Commit

Permalink
Escape error messages in error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
PilzAdam committed Jan 6, 2014
1 parent 92aa38b commit 3e728e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/mainmenu.lua
Expand Up @@ -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
Expand Down

0 comments on commit 3e728e7

Please sign in to comment.