Escape texture pack names
authorShadowNinja <shadowninja@minetest.net>
Mon, 3 Feb 2014 22:57:19 +0000 (17:57 -0500)
committerShadowNinja <shadowninja@minetest.net>
Mon, 3 Feb 2014 22:57:19 +0000 (17:57 -0500)
builtin/mainmenu.lua

index 7fa5ff6cfac7de5d011ee88620d146c4a86f1927..5a5fe3b7f53efd50b33609e39755a1c2d6182e6e 100644 (file)
@@ -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