Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created January 6, 2014 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/8286684 to your computer and use it in GitHub Desktop.
Save PilzAdam/8286684 to your computer and use it in GitHub Desktop.
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index 73f0436..d8c2b63 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment