]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Handle native boolean values in lua_util.toboolean()
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Feb 2026 17:35:32 +0000 (17:35 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Feb 2026 17:35:32 +0000 (17:35 +0000)
commit5ef9396dfd9c308f74fc67e4799c92c1bf9ea5c3
treedd0121a59d33962bd8922adc497147ff507b3d74
parente398c8e2b2cd844cc2e14ec3ec7cc99b6574447d
[Fix] Handle native boolean values in lua_util.toboolean()

toboolean() only handled string and number inputs, falling through to
the error branch for native Lua booleans and always returning false.
This broke the fuzzy_check "checks" configuration block since UCL
converts boolean values to native Lua booleans, and apply_checks_overrides
in lua_fuzzy.lua passes them through toboolean() via bool_opt().

Fixes: #5775
lualib/lua_util.lua