From: rubenwardy Date: Wed, 24 May 2017 05:45:23 +0000 (+0100) Subject: Add formspec escaping to subgame list in create world dialog (#5808) X-Git-Tag: 0.4.16~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8fb1f79bcd4261e2ed58f2f4286994d947572e2;p=oweals%2Fminetest.git Add formspec escaping to subgame list in create world dialog (#5808) --- diff --git a/builtin/mainmenu/gamemgr.lua b/builtin/mainmenu/gamemgr.lua index b6faa71d9..fd6025fcd 100644 --- a/builtin/mainmenu/gamemgr.lua +++ b/builtin/mainmenu/gamemgr.lua @@ -68,10 +68,10 @@ end function gamemgr.gamelist() local retval = "" if #gamemgr.games > 0 then - retval = retval .. gamemgr.games[1].name + retval = retval .. core.formspec_escape(gamemgr.games[1].name) for i=2,#gamemgr.games,1 do - retval = retval .. "," .. gamemgr.games[i].name + retval = retval .. "," .. core.formspec_escape(gamemgr.games[i].name) end end return retval