aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/emails.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-08 16:42:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-08 16:42:04 +0000
commit08d1815a773b9543f79fc89b21191f0b1cf0e043 (patch)
tree0157e759644456ab029ed9bd10565adc967b1d4f /src/plugins/lua/emails.lua
parenta0a7d49e7ebb2479c807d1de26a6dea27e5db064 (diff)
downloadrspamd-08d1815a773b9543f79fc89b21191f0b1cf0e043.tar.gz
rspamd-08d1815a773b9543f79fc89b21191f0b1cf0e043.zip
Replace gfind with gmatch.
Reported by: Andrew Lewis
Diffstat (limited to 'src/plugins/lua/emails.lua')
-rw-r--r--src/plugins/lua/emails.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua
index 80855453d..d99b0966b 100644
--- a/src/plugins/lua/emails.lua
+++ b/src/plugins/lua/emails.lua
@@ -17,7 +17,7 @@ function split(str, delim, maxNb)
local pat = "(.-)" .. delim .. "()"
local nb = 0
local lastPos
- for part, pos in string.gfind(str, pat) do
+ for part, pos in string.gmatch(str, pat) do
nb = nb + 1
result[nb] = part
lastPos = pos