From 7a181b1fe66fcf0fd5a3b94c6ceae7e9a2a08b47 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Jul 2021 15:45:06 +0100 Subject: [Minor] Add safety guards --- rules/html.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rules/html.lua') diff --git a/rules/html.lua b/rules/html.lua index 852be8168..97a6b2372 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -216,8 +216,8 @@ local vis_check_id = rspamd_config:register_symbol{ transp_rate = tr arg = string.format('%s color #%x%x%x bgcolor #%x%x%x', tag:get_type(), - bl.color[1], bl.color[2], bl.color[3], - bl.bgcolor[1], bl.bgcolor[2], bl.bgcolor[3]) + bl.color[1] or 0, bl.color[2] or 0, bl.color[3] or 0, + bl.bgcolor[1] or 0, bl.bgcolor[2] or 0, bl.bgcolor[3] or 0) end end end -- cgit v1.2.3