Skip to content

Commit fbef701

Browse files
committedFeb 3, 2014
Escape texture pack names
1 parent 857a49e commit fbef701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎builtin/mainmenu.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ end
210210
function menu.render_texture_pack_list(list)
211211
local retval = ""
212212

213-
for i,v in ipairs(list) do
213+
for i, v in ipairs(list) do
214214
if retval ~= "" then
215215
retval = retval ..","
216216
end
217217

218-
retval = retval .. v
218+
retval = retval .. engine.formspec_escape(v)
219219
end
220220

221221
return retval

0 commit comments

Comments
 (0)
Please sign in to comment.