]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix spamtrap map description 3380/head
authorBeat Jörg <beat.joerg@gmail.com>
Mon, 25 May 2020 06:36:57 +0000 (08:36 +0200)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 06:36:57 +0000 (08:36 +0200)
String is not correctly interpolated. Shows %s in WebUI.

src/plugins/lua/spamtrap.lua

index 4b03b1739676f5713279008b7edb840cefefbdad..fbe748db2af10124907f26cf6dd92ebfc03147d7 100644 (file)
@@ -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