From: Carsten Rosenberg Date: Wed, 24 Oct 2018 20:13:36 +0000 (+0200) Subject: [Fix] Antivirus - virus names with 0 were recognized as tables X-Git-Tag: 1.8.2~144^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bc6d10cda4828c8c194242fd70eb75ca26d361b;p=thirdparty%2Frspamd.git [Fix] Antivirus - virus names with 0 were recognized as tables --- diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 025e360432..1c2660b72c 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -313,7 +313,7 @@ local function check_av_cache(task, digest, rule, fn) -- Cached if data ~= 'OK' then lua_util.debugm(N, task, 'got cached result for %s: %s', key, data) - data = rspamd_str_split(data, '\x30') + data = rspamd_str_split(data, '\x7c') yield_result(task, rule, data) else lua_util.debugm(N, task, 'got cached result for %s: %s', key, data)