From: Vsevolod Stakhov Date: Fri, 30 Oct 2020 19:06:19 +0000 (+0000) Subject: [Minor] Lua_mime: One more off-by-one X-Git-Tag: 2.7~182 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4bbca423bcb3c4379243b2442220b669d3ef2b42;p=rspamd.git [Minor] Lua_mime: One more off-by-one --- 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