diff options
author | Philippe Kueck <projects@unixadm.org> | 2018-01-24 12:14:46 +0100 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2018-01-24 14:08:47 +0200 |
commit | c4bf1fdeabd6312f251412004d9c91ca886b4342 (patch) | |
tree | db61034243e2091b374efa7ed7a1728272ace679 /src | |
parent | 6700aec05793200ec156ff8550e910d01ca12dd7 (diff) | |
download | rspamd-c4bf1fdeabd6312f251412004d9c91ca886b4342.tar.gz rspamd-c4bf1fdeabd6312f251412004d9c91ca886b4342.zip |
f-prot: match virus name non-greedily
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 2cf0aec68..b3523ba68 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -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 |