]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
f-prot: match virus name non-greedily
authorPhilippe Kueck <projects@unixadm.org>
Wed, 24 Jan 2018 11:14:46 +0000 (12:14 +0100)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 24 Jan 2018 12:08:47 +0000 (14:08 +0200)
src/plugins/lua/antivirus.lua

index 2cf0aec685ac1cf2934035f499c498a2799302c5..b3523ba68ed3f31a487522efab4dfdbeae50cee2 100644 (file)
@@ -391,7 +391,7 @@ local function fprot_check(task, rule)
             rspamd_logger.infox(task, '%s [%s]: message is clean', rule['symbol'], rule['type'])
           end
         else
-          local vname = string.match(data, '^1 <infected: (.+)>')
+          local vname = string.match(data, '^1 <infected: (.+?)>')
           if not vname then
             rspamd_logger.errx(task, 'Unhandled response: %s', data)
           else