From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:30:16 +0000 (+0100) Subject: Fix missing non_en false due to fill_empty_strings function X-Git-Tag: 3.11.0~33^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5186%2Fhead;p=thirdparty%2Frspamd.git Fix missing non_en false due to fill_empty_strings function --- diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index d76e0d7234..f3eb3cc4fe 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -352,6 +352,8 @@ local function fill_empty_strings(tbl, empty_value) if next(nested_filtered) ~= nil then filled_tbl[key] = nested_filtered end + elseif type(value) == 'boolean' then + filled_tbl[key] = value elseif value and type(value) == 'string' and is_empty(value) then filled_tbl[key] = empty_value elseif value then