From: Vsevolod Stakhov Date: Thu, 8 Jul 2021 14:45:06 +0000 (+0100) Subject: [Minor] Add safety guards X-Git-Tag: 3.0~192 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a181b1fe66fcf0fd5a3b94c6ceae7e9a2a08b47;p=thirdparty%2Frspamd.git [Minor] Add safety guards --- diff --git a/rules/html.lua b/rules/html.lua index 852be8168e..97a6b23727 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