From 61970761fbe0e9a2b84f1bef0bcb51a096501059 Mon Sep 17 00:00:00 2001 From: glenvt18 Date: Mon, 31 Dec 2018 23:35:52 +0300 Subject: [PATCH] fix(menubar): escape XML entities in the item name (#2522) --- lib/menubar/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/menubar/init.lua b/lib/menubar/init.lua index 9fabd134e..55ad383e2 100644 --- a/lib/menubar/init.lua +++ b/lib/menubar/init.lua @@ -142,7 +142,7 @@ local function label(o) 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 end - return colortext(o.name, fg_color), + return colortext(gstring.xml_escape(o.name), fg_color), bg_color, nil, o.icon