]> source.dussan.org Git - rspamd.git/commitdiff
Fix missing non_en false due to fill_empty_strings function 5186/head
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Fri, 8 Nov 2024 11:30:16 +0000 (12:30 +0100)
committerDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Fri, 8 Nov 2024 11:30:16 +0000 (12:30 +0100)
src/plugins/lua/elastic.lua

index d76e0d72341c0b7e0738d4bebe4024260a3e977e..f3eb3cc4fe6caf6f43a2cab5176d29a781aeedd8 100644 (file)
@@ -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