From 30fac36d9dd9323f9e41caf8f8393af8e39eba69 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 22 Sep 2018 09:38:37 +0100 Subject: [PATCH] [Minor] Apply transform --- lualib/lua_selectors.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5