]> source.dussan.org Git - rspamd.git/commitdiff
f-prot: match virus name non-greedily 1999/head
authorPhilippe Kueck <projects@unixadm.org>
Wed, 24 Jan 2018 11:14:46 +0000 (12:14 +0100)
committerPhilippe Kueck <bqobccy6ejnq2bqvmebqiwqha4cs4@protected32.unixadm.org>
Wed, 24 Jan 2018 11:22:42 +0000 (12:22 +0100)
src/plugins/lua/antivirus.lua

index 6120cb41f340feede4efa9f1ee2c3bc90b323c3c..0a16ff145a9f64f97efc133904866b7c66495832 100644 (file)
@@ -410,7 +410,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