From: Vsevolod Stakhov Date: Thu, 17 Sep 2020 08:10:01 +0000 (+0100) Subject: [Minor] Fix `get_tld` selector X-Git-Tag: 2.6~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=67a9b24adc7336370776644cc82f8393601229b1;p=rspamd.git [Minor] Fix `get_tld` selector --- diff --git a/lualib/lua_selectors/transforms.lua b/lualib/lua_selectors/transforms.lua index e5987a216..6251180ec 100644 --- a/lualib/lua_selectors/transforms.lua +++ b/lualib/lua_selectors/transforms.lua @@ -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'] = {}