fix(menubar): escape XML entities in the item name (#2522)

This commit is contained in:
glenvt18 2018-12-31 23:35:52 +03:00 committed by Emmanuel Lepage Vallée
parent 289cfcaaed
commit 61970761fb
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ local function label(o)
fg_color = theme.menubar_fg_focus or theme.menu_fg_focus or theme.fg_focus fg_color = theme.menubar_fg_focus or theme.menu_fg_focus or theme.fg_focus
bg_color = theme.menubar_bg_focus or theme.menu_bg_focus or theme.bg_focus bg_color = theme.menubar_bg_focus or theme.menu_bg_focus or theme.bg_focus
end end
return colortext(o.name, fg_color), return colortext(gstring.xml_escape(o.name), fg_color),
bg_color, bg_color,
nil, nil,
o.icon o.icon