diff options
author | Andrew Lewis <nerf@judo.za.org> | 2018-01-24 13:34:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 13:34:24 +0200 |
commit | e21d0ba5d3d01655645fb72687c62f2d27d756b5 (patch) | |
tree | 67ed41fdca90e42c95d90428e1fd2cd7e7210ffb | |
parent | 2c4ad580acb132884c874562cc9d7477c4ad9b5e (diff) | |
parent | c86b98d162a511515103492bcf98a1b67aa446f4 (diff) | |
download | rspamd-e21d0ba5d3d01655645fb72687c62f2d27d756b5.tar.gz rspamd-e21d0ba5d3d01655645fb72687c62f2d27d756b5.zip |
Merge pull request #1999 from philfry/fprot-parse
f-prot: match virus name non-greedily
-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 6120cb41f..0a16ff145 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -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 |