Skip to content

Commit

Permalink
Add formspec escaping to subgame list in create world dialog (#5808)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy authored and nerzhul committed May 24, 2017
1 parent 649f641 commit e8fb1f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/mainmenu/gamemgr.lua
Expand Up @@ -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
Expand Down

0 comments on commit e8fb1f7

Please sign in to comment.