]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix explicit methods call in selectors
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Nov 2018 15:59:45 +0000 (15:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Nov 2018 15:59:45 +0000 (15:59 +0000)
Issue: #2621
Closes: #2621
lualib/lua_selectors.lua

index 065eac89b0d50094492227fe739e582136f841ae..754795495deb60a1a0d6e4841fc531a04fb661f5 100644 (file)
@@ -770,10 +770,10 @@ exports.parse_selector = function(cfg, str)
           map_type = 'string',
           process = function(inp, t, args)
             if t == 'userdata' then
-              return inp[method_name](inp, args),string
+              return inp[method_name](inp, args),'string'
             else
               -- Table
-              return inp[method_name],string
+              return inp[method_name],'string'
             end
           end,
         }