Skip to content

Commit

Permalink
Add escaping to world list in main menu (fixes #896).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Zhuravlev committed Aug 29, 2013
1 parent d470842 commit 82e1ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/mainmenu.lua
Expand Up @@ -169,8 +169,8 @@ function menu.render_world_list()
retval = retval ..","
end

retval = retval .. v.name ..
" \\[" .. v.gameid .. "\\]"
retval = retval .. engine.formspec_escape(v.name) ..
" \\[" .. engine.formspec_escape(v.gameid) .. "\\]"
end

return retval
Expand Down

0 comments on commit 82e1ab7

Please sign in to comment.