Add escaping to world list in main menu (fixes #896).
authorIlya Zhuravlev <zhuravlevilya@ya.ru>
Thu, 29 Aug 2013 12:12:16 +0000 (16:12 +0400)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Thu, 29 Aug 2013 12:12:16 +0000 (16:12 +0400)
builtin/mainmenu.lua

index 490f9ae4e1af968fcaff58f071cf192ce1511f76..ab8dbe144a39ed4a5dbf1c26487b586d2b64a63b 100644 (file)
@@ -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