]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix vector invocation of elt transformer
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 Aug 2018 19:32:22 +0000 (20:32 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 Aug 2018 19:32:22 +0000 (20:32 +0100)
lualib/lua_selectors.lua

index 960d15a24637cefb27b83da872cb2db31b2a8d55..4d0e7a2ecc7ff66bc9c58249413e25be93af27ce 100644 (file)
@@ -332,8 +332,9 @@ local transform_function = {
   -- Extracts table value from key-value list
   ['elt'] = {
     ['types'] = {
-      ['kv_list'] = true,
+      ['kv'] = true,
     },
+    ['map_type'] = 'string',
     ['process'] = function(inp, t, args)
       return inp[args[1]],'string'
     end