diff options
author | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-11-08 12:30:16 +0100 |
---|---|---|
committer | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-11-08 12:30:16 +0100 |
commit | 53cc23ffc2b15045b72980181811914394393b4f (patch) | |
tree | bd1d9405d05aa2d5cba8bfafce4d635a7f8281a3 /src/plugins | |
parent | 0d6acc9aba4f8515e10ab6f3677e737f5d89d40f (diff) | |
download | rspamd-53cc23ffc2b15045b72980181811914394393b4f.tar.gz rspamd-53cc23ffc2b15045b72980181811914394393b4f.zip |
Fix missing non_en false due to fill_empty_strings function
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/elastic.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index d76e0d723..f3eb3cc4f 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 |