diff options
author | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-26 13:49:02 +0100 |
---|---|---|
committer | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-01-26 13:49:02 +0100 |
commit | 59b5ff6ccc8182a23beaf5774263f175e8cf7cef (patch) | |
tree | bf22eec80199cb375eceb72ab297571798d9dd33 | |
parent | 799e3193d2604d9cf830b1b72b6e9548e36cf08c (diff) | |
download | rspamd-59b5ff6ccc8182a23beaf5774263f175e8cf7cef.tar.gz rspamd-59b5ff6ccc8182a23beaf5774263f175e8cf7cef.zip |
[Minor] lua_scanners - icap check empty key
-rw-r--r-- | lualib/lua_scanners/icap.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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', |