aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-02 21:23:12 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-02 21:23:12 +0100
commit101b8021a09eed4bdd5047c3dd1d4bc447ffddad (patch)
tree78066af25c03da037b036a6d3df172ccaff5cc3c /lualib
parent068dd8ec2b7bc4b714ff3e41f4f194c8779329e8 (diff)
downloadrspamd-101b8021a09eed4bdd5047c3dd1d4bc447ffddad.tar.gz
rspamd-101b8021a09eed4bdd5047c3dd1d4bc447ffddad.zip
[Fix] Properly parse expressions atoms
Issue: #4181
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_maps_expressions.lua2
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