commit 67a9b24: [Minor] Fix `get_tld` selector

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Sep 17 08:14:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-09-17 09:10:01 +0100
URL: https://github.com/rspamd/rspamd/commit/67a9b24adc7336370776644cc82f8393601229b1 (HEAD -> master)

[Minor] Fix `get_tld` selector

---
 lualib/lua_selectors/transforms.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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'] = {}


More information about the Commits mailing list