aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/phishing.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-11 15:25:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-11 15:25:54 +0000
commita55f3e05b6462e063e0501f6251bd05c39f4eaab (patch)
tree48c503bb734fa9af917b3b84cc502b7c8c654c68 /src/plugins/lua/phishing.lua
parent5da8cf87d7c40dc6a73d79f0a526f603852c9c6d (diff)
downloadrspamd-a55f3e05b6462e063e0501f6251bd05c39f4eaab.tar.gz
rspamd-a55f3e05b6462e063e0501f6251bd05c39f4eaab.zip
[Fix] Fix text splitting: stack overflow (too many captures)
MFH: rspamd-1.6
Diffstat (limited to 'src/plugins/lua/phishing.lua')
-rw-r--r--src/plugins/lua/phishing.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua
index cd2288067..e76ffc79a 100644
--- a/src/plugins/lua/phishing.lua
+++ b/src/plugins/lua/phishing.lua
@@ -248,8 +248,8 @@ end
local function rspamd_str_split_fun(s, sep, func)
local lpeg = require "lpeg"
sep = lpeg.P(sep)
- local elem = lpeg.C((1 - sep)^0 / func)
- local p = lpeg.C(elem * (sep * elem)^0) -- make a table capture
+ local elem = lpeg.P((1 - sep)^0 / func)
+ local p = lpeg.P(elem * (sep * elem)^0)
return p:match(s)
end