aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-22 09:38:37 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-22 09:38:37 +0100
commit30fac36d9dd9323f9e41caf8f8393af8e39eba69 (patch)
treeab63cd4b620e6ac4b197860adbf4427244e1faf6 /lualib
parent27908955b462e32e27aacdfa5d0bd7d2d2a07ab2 (diff)
downloadrspamd-30fac36d9dd9323f9e41caf8f8393af8e39eba69.tar.gz
rspamd-30fac36d9dd9323f9e41caf8f8393af8e39eba69.zip
[Minor] Apply transform
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_selectors.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua
index 8c54b756f..24bc0e78b 100644
--- a/lualib/lua_selectors.lua
+++ b/lualib/lua_selectors.lua
@@ -672,11 +672,13 @@ exports.parse_selector = function(cfg, str)
local function check_args(name, schema, args)
if schema then
for i,selt in ipairs(schema) do
- local res,err = selt(args[i])
+ local res,err = selt:transform(args[i])
if not res then
logger.errx(rspamd_config, 'invalid arguments for %s: %s', name, err)
return false
+ else
+ args[i] = res
end
end
end