]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Selectors - attachments args condition 2640/head
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Tue, 20 Nov 2018 21:44:33 +0000 (22:44 +0100)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Tue, 20 Nov 2018 21:44:33 +0000 (22:44 +0100)
lualib/lua_selectors.lua

index 8092d7892164272c5f668fb7f42326ee344fe89b..4025ef68030e6379d82bbb47090ec564b6f34c5f 100644 (file)
@@ -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'