From: Carsten Rosenberg Date: Tue, 20 Nov 2018 21:44:33 +0000 (+0100) Subject: [Fix] Selectors - attachments args condition X-Git-Tag: 1.8.3~82^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2640%2Fhead;p=thirdparty%2Frspamd.git [Fix] Selectors - attachments args condition --- diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 8092d78921..4025ef6803 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -138,7 +138,7 @@ uses any type by default)]], local parts = task:get_parts() or E local digests = {} - if args ~= nil then + if #args > 0 then local rspamd_cryptobox = require "rspamd_cryptobox_hash" local encoding = args[1] or 'hex' local ht = args[2] or 'blake2'