summaryrefslogtreecommitdiff
path: root/builtin/mainmenu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/mainmenu.lua')
-rw-r--r--builtin/mainmenu.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index 490f9ae4e..ab8dbe144 100644
--- a/builtin/mainmenu.lua
+++ b/builtin/mainmenu.lua
@@ -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