]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix local variable in script
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Jul 2018 16:36:48 +0000 (17:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Jul 2018 16:36:48 +0000 (17:36 +0100)
conf/modules.d/surbl.conf

index 02acae95ecb79eb3acd3fcc9640c9ff0207e99dc..34fdf8ed246e919f31aa7980fcf9aedd57adf3b0 100644 (file)
@@ -50,7 +50,7 @@ surbl {
             process_script =<<EOD
 function(url, suffix)
   local cr = require "rspamd_cryptobox_hash"
-  h = cr.create(url):base32():sub(1, 32)
+  local h = cr.create(url):base32():sub(1, 32)
   return string.format("%s.%s", h, suffix)
 end
 EOD;