]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix `get_tld` selector
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Sep 2020 08:10:01 +0000 (09:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Sep 2020 08:10:01 +0000 (09:10 +0100)
lualib/lua_selectors/transforms.lua

index e5987a216118e7eccd47ef3d8e0abbb5809ee9d1..6251180ecfd814d86b8296d1290bd428a5de895e 100644 (file)
@@ -436,7 +436,7 @@ Empty string comes the first argument or 'true', non-empty string comes nil]],
     },
     ['map_type'] = 'string',
     ['process'] = function(inp, _, _)
-      return rspamd_util.get_tld(inp)
+      return rspamd_util.get_tld(inp),'string'
     end,
     ['description'] = 'Extracts tld from a hostname represented as a string',
     ['args_schema'] = {}