diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-09-11 16:05:51 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-10-18 12:27:43 +0200 |
commit | f379c145a111985ee0b0a81b5a1c274e34ff55f4 (patch) | |
tree | 7eb69ceb21464eb4d77d696a9bf5d872785af97b /rules | |
parent | eac7a97ead7f7e256238db62b5d006a73cf17452 (diff) | |
download | rspamd-f379c145a111985ee0b0a81b5a1c274e34ff55f4.tar.gz rspamd-f379c145a111985ee0b0a81b5a1c274e34ff55f4.zip |
[Minor] Fix tests
Diffstat (limited to 'rules')
-rw-r--r-- | rules/html.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rules/html.lua b/rules/html.lua index c77ac10f3..7cc0ccc91 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 |