diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-02 21:23:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-02 21:23:12 +0100 |
commit | 101b8021a09eed4bdd5047c3dd1d4bc447ffddad (patch) | |
tree | 78066af25c03da037b036a6d3df172ccaff5cc3c /lualib | |
parent | 068dd8ec2b7bc4b714ff3e41f4f194c8779329e8 (diff) | |
download | rspamd-101b8021a09eed4bdd5047c3dd1d4bc447ffddad.tar.gz rspamd-101b8021a09eed4bdd5047c3dd1d4bc447ffddad.zip |
[Fix] Properly parse expressions atoms
Issue: #4181
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_maps_expressions.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_maps_expressions.lua b/lualib/lua_maps_expressions.lua index 6a2532bf4..0d030b4c4 100644 --- a/lualib/lua_maps_expressions.lua +++ b/lualib/lua_maps_expressions.lua @@ -174,7 +174,7 @@ local function create(cfg, obj, module_name) -- Now process and parse expression local function parse_atom(str) local atom = table.concat(fun.totable(fun.take_while(function(c) - if string.find(', \t()><+!|&\n', c) then + if string.find(', \t()><+!|&\n', c, 1, true) then return false end return true |