aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_selectors/transforms.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-14 12:15:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-14 12:16:19 +0100
commitfe590fd7b5ea560fd468d57296c4bcf25e6cf320 (patch)
treea4f491ff149baf7d1636af4357ce8463901eb2c7 /lualib/lua_selectors/transforms.lua
parentb9a659c5d01a92d124344d62dff70da431c6443c (diff)
downloadrspamd-fe590fd7b5ea560fd468d57296c4bcf25e6cf320.tar.gz
rspamd-fe590fd7b5ea560fd468d57296c4bcf25e6cf320.zip
[Fix] Fix calling of methods in selectors
Diffstat (limited to 'lualib/lua_selectors/transforms.lua')
-rw-r--r--lualib/lua_selectors/transforms.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lualib/lua_selectors/transforms.lua b/lualib/lua_selectors/transforms.lua
index e47fdcec6..bbf5f510a 100644
--- a/lualib/lua_selectors/transforms.lua
+++ b/lualib/lua_selectors/transforms.lua
@@ -132,9 +132,8 @@ local transform_function = {
['types'] = {
['string'] = true
},
- ['map_type'] = 'hash',
+ ['map_type'] = 'string',
['process'] = function(inp, _, args)
-
return common.create_digest(inp, args),'string'
end,
['description'] = [[Create a digest from a string.