]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Milter headers: skip_local / skip_authenticated settings
authorAndrew Lewis <nerf@judo.za.org>
Thu, 28 Sep 2017 11:19:25 +0000 (13:19 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 17 Oct 2017 22:26:15 +0000 (00:26 +0200)
 - Fixes: #1850
 - Reported by: @iflyhigh
 - MFH: rspamd-1.6

src/plugins/lua/milter_headers.lua

index f3d698c24ce883ff6f89827d24d5efa0f33b3e75..d193e29aaa6819b1217981fad8b1512484f46a5c 100644 (file)
@@ -458,11 +458,11 @@ if opts['extended_spam_headers'] then
   activate_routine('x-rspamd-server')
   activate_routine('x-rspamd-queue-id')
 end
-if opts['skip_local'] then
-  settings.skip_local = true
+if type(opts['skip_local']) == 'boolean' then
+  settings.skip_local = opts['skip_local']
 end
-if opts['skip_authenticated'] then
-  settings.skip_authenticated = true
+if type(opts['skip_authenticated']) == 'boolean' then
+  settings.skip_authenticated = opts['skip_authenticated']
 end
 for _, s in ipairs(opts['use']) do
   if not have_routine[s] then