aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zhuravlev <zhuravlevilya@ya.ru>2013-08-29 16:12:16 +0400
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-08-29 16:12:16 +0400
commit82e1ab7b2b7725f57ff7061c77bb689b1c1f636e (patch)
treeec2bee37f0decadbf4742fd0825990386578ce13
parentd470842e8e223626147b14fa0373a1736c9a9df6 (diff)
downloadminetest-82e1ab7b2b7725f57ff7061c77bb689b1c1f636e.tar.gz
minetest-82e1ab7b2b7725f57ff7061c77bb689b1c1f636e.tar.bz2
minetest-82e1ab7b2b7725f57ff7061c77bb689b1c1f636e.zip
Add escaping to world list in main menu (fixes #896).
-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