Escape error messages in error dialog
authorPilzAdam <pilzadam@minetest.net>
Mon, 6 Jan 2014 17:59:14 +0000 (18:59 +0100)
committerPilzAdam <pilzadam@minetest.net>
Mon, 6 Jan 2014 17:59:14 +0000 (18:59 +0100)
builtin/mainmenu.lua

index 73f04361eea7cfabcc5fda8524a9df30f9cd630e..d8c2b63eceb682cbaeb3f0f1436fb416675c2f7e 100644 (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