From 6a5ae2fae296844967d77ad7b0718a03372ec7fd Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 19 Oct 2016 10:45:26 +0200 Subject: [PATCH] [Minor] Fix virus name match for Sophos --- src/plugins/lua/antivirus.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5