From 82e1ab7b2b7725f57ff7061c77bb689b1c1f636e Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Thu, 29 Aug 2013 16:12:16 +0400 Subject: [PATCH] Add escaping to world list in main menu (fixes #896). --- builtin/mainmenu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index 490f9ae4..ab8dbe14 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 -- 2.30.2