From: Beat Jörg Date: Mon, 25 May 2020 06:36:57 +0000 (+0200) Subject: [Minor] Fix spamtrap map description X-Git-Tag: 2.6~396^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b66df81cd9fa6799f1fd8d2fd92781661d722d8;p=rspamd.git [Minor] Fix spamtrap map description String is not correctly interpolated. Shows %s in WebUI. --- diff --git a/src/plugins/lua/spamtrap.lua b/src/plugins/lua/spamtrap.lua index 4b03b1739..fbe748db2 100644 --- a/src/plugins/lua/spamtrap.lua +++ b/src/plugins/lua/spamtrap.lua @@ -167,7 +167,7 @@ if opts then if settings['map'] then settings['map'] = rspamd_config:add_map{ url = settings['map'], - description = "Spamtrap map for %s", settings['symbol'], + description = string.format("Spamtrap map for %s", settings['symbol']), type = "regexp" } else