From: Andrew Lewis Date: Wed, 19 Oct 2016 08:45:26 +0000 (+0200) Subject: [Minor] Fix virus name match for Sophos X-Git-Tag: 1.4.0~225^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1055%2Fhead;p=rspamd.git [Minor] Fix virus name match for Sophos --- diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 2e95b6298..42c1fbf24 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -405,7 +405,7 @@ local function sophos_check(task, rule) upstream:ok() data = tostring(data) - local vname = string.match(data, 'VIRUS (.+)') + local vname = string.match(data, 'VIRUS (%S+) ') if vname then yield_result(task, rule, vname) save_av_cache(task, rule, vname)