mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Escape texture pack names
This commit is contained in:
parent
857a49e081
commit
fbef701bcd
1 changed files with 2 additions and 2 deletions
|
@ -210,12 +210,12 @@ end
|
||||||
function menu.render_texture_pack_list(list)
|
function menu.render_texture_pack_list(list)
|
||||||
local retval = ""
|
local retval = ""
|
||||||
|
|
||||||
for i,v in ipairs(list) do
|
for i, v in ipairs(list) do
|
||||||
if retval ~= "" then
|
if retval ~= "" then
|
||||||
retval = retval ..","
|
retval = retval ..","
|
||||||
end
|
end
|
||||||
|
|
||||||
retval = retval .. v
|
retval = retval .. engine.formspec_escape(v)
|
||||||
end
|
end
|
||||||
|
|
||||||
return retval
|
return retval
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue