diff options
author | SmallJoker <mk939@ymail.com> | 2022-07-22 19:04:10 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2022-07-22 19:04:19 +0200 |
commit | 8dcbca1068225b6896c3630b390c64d5946d2c73 (patch) | |
tree | 2f0310b0a04b106739bdfe79300ed215499913ad /builtin | |
parent | 2183b35ba4cda762e3176a7b442dd786e749b35d (diff) | |
download | minetest-8dcbca1068225b6896c3630b390c64d5946d2c73.tar.gz minetest-8dcbca1068225b6896c3630b390c64d5946d2c73.tar.bz2 minetest-8dcbca1068225b6896c3630b390c64d5946d2c73.zip |
Mainmenu: Escape server_favorite_delete path
No similar issues were found inside this file.
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/tab_online.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/tab_online.lua b/builtin/mainmenu/tab_online.lua index a8e1eb2ef..899f30bd1 100644 --- a/builtin/mainmenu/tab_online.lua +++ b/builtin/mainmenu/tab_online.lua @@ -110,8 +110,8 @@ local function get_formspec(tabview, name, tabdata) if gamedata.fav then retval = retval .. "tooltip[btn_delete_favorite;" .. fgettext("Remove favorite") .. "]" retval = retval .. "style[btn_delete_favorite;padding=6]" - retval = retval .. "image_button[5,1.3;0.5,0.5;" .. defaulttexturedir .. - "server_favorite_delete.png;btn_delete_favorite;]" + retval = retval .. "image_button[5,1.3;0.5,0.5;" .. core.formspec_escape(defaulttexturedir .. + "server_favorite_delete.png") .. ";btn_delete_favorite;]" end if gamedata.serverdescription then retval = retval .. "textarea[0.25,1.85;5.2,2.75;;;" .. |