From: Philippe Kueck Date: Wed, 24 Jan 2018 11:14:46 +0000 (+0100) Subject: f-prot: match virus name non-greedily X-Git-Tag: 1.6.6~3^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4bf1fdeabd6312f251412004d9c91ca886b4342;p=thirdparty%2Frspamd.git f-prot: match virus name non-greedily --- diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 2cf0aec685..b3523ba68e 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 ') + local vname = string.match(data, '^1 ') if not vname then rspamd_logger.errx(task, 'Unhandled response: %s', data) else