]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Antivirus - virus names with 0 were recognized as tables
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Wed, 24 Oct 2018 20:13:36 +0000 (22:13 +0200)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Wed, 24 Oct 2018 20:13:36 +0000 (22:13 +0200)
src/plugins/lua/antivirus.lua

index 025e3604323b8121bd57b9fc2c7a301e77409cc5..1c2660b72c1622c9343dd1d16fff1e2d7241ec92 100644 (file)
@@ -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)