diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-30 19:06:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-30 19:06:19 +0000 |
commit | 4bbca423bcb3c4379243b2442220b669d3ef2b42 (patch) | |
tree | c03f89a79e793565512b7de1fbe46de0703d73c7 /lualib/lua_mime.lua | |
parent | ab791a5622c0ad6dc5d47bc2a858813b12f005fa (diff) | |
download | rspamd-4bbca423bcb3c4379243b2442220b669d3ef2b42.tar.gz rspamd-4bbca423bcb3c4379243b2442220b669d3ef2b42.zip |
[Minor] Lua_mime: One more off-by-one
Diffstat (limited to 'lualib/lua_mime.lua')
-rw-r--r-- | lualib/lua_mime.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 0019d7622..8d52488af 100644 --- a/lualib/lua_mime.lua +++ b/lualib/lua_mime.lua @@ -356,7 +356,7 @@ local function do_replacement (task, part, mp, replacements, if m[1][1] >= cur_start then fragments[#fragments + 1] = content:sub(cur_start, m[1][1] - 1) fragments[#fragments + 1] = replacements[m[2]] - cur_start = m[1][2] + 1 -- end of match + cur_start = m[1][2] -- end of match end end |