Skip to content

Commit

Permalink
Mainmenu: Escape server_favorite_delete path
Browse files Browse the repository at this point in the history
No similar issues were found inside this file.
  • Loading branch information
SmallJoker committed Jul 22, 2022
1 parent 2183b35 commit 8dcbca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/mainmenu/tab_online.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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;;;" ..
Expand Down

0 comments on commit 8dcbca1

Please sign in to comment.