diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-21 12:40:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 12:40:11 +0000 |
commit | 9943eb69b0192ad589d4144c290d6857d922bd20 (patch) | |
tree | 755d4cfd9655c59382e1472c6ee3917b9664b34b /lualib | |
parent | f75769f242817029e5d8bfa3d617d02aece1729a (diff) | |
parent | 064e2c20a93f2202edf99164bfadb4c2e5621378 (diff) | |
download | rspamd-9943eb69b0192ad589d4144c290d6857d922bd20.tar.gz rspamd-9943eb69b0192ad589d4144c290d6857d922bd20.zip |
Merge pull request #2640 from HeinleinSupport/selectors
[Fix] Selectors - attachments args condition
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_selectors.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 8092d7892..4025ef680 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' |