From: Carsten Rosenberg Date: Sat, 26 Jan 2019 12:49:02 +0000 (+0100) Subject: [Minor] lua_scanners - icap check empty key X-Git-Tag: 1.9.0~244^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59b5ff6ccc8182a23beaf5774263f175e8cf7cef;p=rspamd.git [Minor] lua_scanners - icap check empty key --- diff --git a/lualib/lua_scanners/icap.lua b/lualib/lua_scanners/icap.lua index 801db72f6..6ddd5fee6 100644 --- a/lualib/lua_scanners/icap.lua +++ b/lualib/lua_scanners/icap.lua @@ -69,7 +69,9 @@ local function icap_check(task, content, digest, rule) end if string.find(s, '[%a%d-+]-:') then local _,_,key,value = tostring(s):find("([%a%d-+]-):%s?(.+)") - icap_headers[key] = value + if key ~= nil then + icap_headers[key] = value + end end end lua_util.debugm(rule.name, task, '%s: icap_headers: %s',