瀏覽代碼

[Rspamd] domain wide footer check for empty strings

FreddleSpl0it 1 年之前
父節點
當前提交
392967d664
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/conf/rspamd/lua/rspamd.local.lua

+ 1 - 1
data/conf/rspamd/lua/rspamd.local.lua

@@ -564,7 +564,7 @@ rspamd_config:register_symbol({
         else
           local footer = parser:get_object()
 
-          if footer and type(footer) == "table" and (footer.html or footer.plain) then
+          if footer and type(footer) == "table" and (footer.html and footer.html ~= "" or footer.plain and footer.plain ~= "")  then
             rspamd_logger.infox(rspamd_config, "found domain wide footer for user %s: html=%s, plain=%s", uname, footer.html, footer.plain)
 
             local envfrom_mime = task:get_from(2)