aboutsummaryrefslogtreecommitdiffstats
path: root/rules/html.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-09-11 16:05:51 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-09-11 16:05:51 +0200
commitb51ce988891efc800acd2a2847d422c4cfba6109 (patch)
tree086ae191fc42ce7ff4e7c7590e647c99d6ce8b9f /rules/html.lua
parentc5db86d4a0462047cd124501a44de98c84dfd5c7 (diff)
downloadrspamd-b51ce988891efc800acd2a2847d422c4cfba6109.tar.gz
rspamd-b51ce988891efc800acd2a2847d422c4cfba6109.zip
[Minor] Fix tests
Diffstat (limited to 'rules/html.lua')
-rw-r--r--rules/html.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules/html.lua b/rules/html.lua
index 7c88928eb..81555839b 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -173,13 +173,12 @@ rspamd_config.R_WHITE_ON_WHITE = {
local tp = task:get_text_parts() -- get text parts in a message
local ret = false
local diff = 0.0
- local normal_len = 0
local transp_rate = 0
local arg
for _,p in ipairs(tp) do -- iterate over text parts array using `ipairs`
if p:is_html() and p:get_html() then -- if the current part is html part
- normal_len = p:get_length()
+ local normal_len = p:get_length()
local transp_len = 0
local hc = p:get_html() -- we get HTML context