Skip to content

Instantly share code, notes, and snippets.

@xyzz
Created August 29, 2013 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyzz/2bf7e9144b2f76599996 to your computer and use it in GitHub Desktop.
Save xyzz/2bf7e9144b2f76599996 to your computer and use it in GitHub Desktop.
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index 490f9ae..ab8dbe1 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment