]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix virus name match for Sophos 1055/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 19 Oct 2016 08:45:26 +0000 (10:45 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 19 Oct 2016 08:45:26 +0000 (10:45 +0200)
src/plugins/lua/antivirus.lua

index 2e95b6298f8c1f03a1f6159504b499606ddd59bd..42c1fbf241026348f8f58e409be3faa91cc71358 100644 (file)
@@ -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)