aboutsummaryrefslogtreecommitdiffstats
path: root/rules/html.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-08 15:45:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-08 15:45:06 +0100
commit7a181b1fe66fcf0fd5a3b94c6ceae7e9a2a08b47 (patch)
treef5f67d03df2a898095e07ea43f8dcaa639595fc8 /rules/html.lua
parent293b68749ccbe72a8d122e8a8ac4d87ad9757076 (diff)
downloadrspamd-7a181b1fe66fcf0fd5a3b94c6ceae7e9a2a08b47.tar.gz
rspamd-7a181b1fe66fcf0fd5a3b94c6ceae7e9a2a08b47.zip
[Minor] Add safety guards
Diffstat (limited to 'rules/html.lua')
-rw-r--r--rules/html.lua4
1 files changed, 2 insertions, 2 deletions
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