From e8fb1f79bcd4261e2ed58f2f4286994d947572e2 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 24 May 2017 06:45:23 +0100 Subject: [PATCH] Add formspec escaping to subgame list in create world dialog (#5808) --- builtin/mainmenu/gamemgr.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1