From fbef701bcddb4a85e25fb9ff6ead07c820b1158d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 3 Feb 2014 17:57:19 -0500 Subject: [PATCH] Escape texture pack names --- builtin/mainmenu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index 7fa5ff6cf..5a5fe3b7f 100644 --- a/builtin/mainmenu.lua +++ b/builtin/mainmenu.lua @@ -210,12 +210,12 @@ end function menu.render_texture_pack_list(list) local retval = "" - for i,v in ipairs(list) do + for i, v in ipairs(list) do if retval ~= "" then retval = retval .."," end - retval = retval .. v + retval = retval .. engine.formspec_escape(v) end return retval