From 233f424dfc4c106326f7875d4bdf1c17399c1608 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Fri, 22 Jul 2016 06:51:30 +0200 Subject: [PATCH 1/1] task: proper XML escaping in notification --- widgets/contrib/task.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/contrib/task.lua b/widgets/contrib/task.lua index f721548..98817f9 100644 --- a/widgets/contrib/task.lua +++ b/widgets/contrib/task.lua @@ -52,7 +52,7 @@ function task:show(scr_pos) c_text = "" - .. f:read("*all"):gsub("\n*$", "") + .. awful.util.escape(f:read("*all"):gsub("\n*$", "")) .. "" f:close() @@ -75,7 +75,7 @@ function task:prompt_add() c_text = "\n" - .. f:read("*all") + .. awful.util.escape(f:read("*all")) .. "" f:close() @@ -107,7 +107,7 @@ function task:prompt_search() c_text = "" - .. c_text + .. awful.util.escape(c_text) .. "" end -- 2.39.5