diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-16 10:17:42 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-16 10:17:42 +0200 |
commit | 03e3d7063308dd169d5b1692ccd28403c16ddd76 (patch) | |
tree | 7eca2b3fbfd8538fd13401fabb242e9570a0924b /src/plugins/lua/spamassassin.lua | |
parent | a5eef8b08ca4ea69cc3c5bb718102fe24f20a61b (diff) | |
download | rspamd-03e3d7063308dd169d5b1692ccd28403c16ddd76.tar.gz rspamd-03e3d7063308dd169d5b1692ccd28403c16ddd76.zip |
[Minor] Small polishes for Lua parts
Diffstat (limited to 'src/plugins/lua/spamassassin.lua')
-rw-r--r-- | src/plugins/lua/spamassassin.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index 07a80bb90..f6bb37fdf 100644 --- a/src/plugins/lua/spamassassin.lua +++ b/src/plugins/lua/spamassassin.lua @@ -1097,10 +1097,10 @@ local function apply_replacements(str) end local function replace_all_tags(s) - local sstr, _ + local sstr sstr = s fun.each(function(n, t) - sstr,_ = string.gsub(sstr, string.format("<%s>", n), + sstr = string.gsub(sstr, string.format("<%s>", n), string.format("%s%s%s", pre, t, post)) end, replace['tags']) |