1
0
Fork 0

Add formspec escaping to subgame list in create world dialog (#5808)

mutilcraft-mt53
rubenwardy 2017-05-24 06:45:23 +01:00 committed by Loïc Blot
parent 649f641f28
commit e8fb1f79bc
1 changed files with 2 additions and 2 deletions

View File

@ -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