Procházet zdrojové kódy

Merge pull request #2609 from HeinleinSupport/master

[Fix] Antivirus - virus names with 0 were recognized as tables
tags/1.8.2
Vsevolod Stakhov před 5 roky
rodič
revize
29d2d4fa26
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      src/plugins/lua/antivirus.lua

+ 2
- 2
src/plugins/lua/antivirus.lua Zobrazit soubor

@@ -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, '\v')
yield_result(task, rule, data)
else
lua_util.debugm(N, task, 'got cached result for %s: %s', key, data)
@@ -359,7 +359,7 @@ local function save_av_cache(task, digest, rule, to_save)
end

if type(to_save) == 'table' then
to_save = table.concat(to_save, '\x30')
to_save = table.concat(to_save, '\v')
end

if redis_params then

Načítá se…
Zrušit
Uložit