summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-19 14:29:14 +0100
committerGitHub <noreply@github.com>2016-10-19 14:29:14 +0100
commite139768a0dae674fa42528fe4297d67e8203eacb (patch)
treed2cf7d3d6169804e62cee71b24486fe2bad3c7c7
parent22688fb4c86406a26eecbc771f535aa0d1ffa62f (diff)
parent6a5ae2fae296844967d77ad7b0718a03372ec7fd (diff)
downloadrspamd-e139768a0dae674fa42528fe4297d67e8203eacb.tar.gz
rspamd-e139768a0dae674fa42528fe4297d67e8203eacb.zip
Merge pull request #1055 from fatalbanana/sophos
[Minor] Fix virus name match for Sophos
-rw-r--r--src/plugins/lua/antivirus.lua2
1 files changed, 1 insertions, 1 deletions
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)