From: ShadowNinja Date: Mon, 3 Feb 2014 22:57:19 +0000 (-0500) Subject: Escape texture pack names X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=fbef701bcddb4a85e25fb9ff6ead07c820b1158d;p=zefram%2Fminetest%2Fminetest_engine.git Escape texture pack names --- diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index 7fa5ff6c..5a5fe3b7 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