]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Make lua_shape :transform() tableshape-compatible
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 12:31:15 +0000 (12:31 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 18 Nov 2025 12:31:15 +0000 (12:31 +0000)
commit51ea8cb73cae7439fd3dbda04a60d43a62798fc2
tree4c972d99298e14bdbc6a6127a45c75dde13afc44
parent8f35536c069d33f9eb2c75a0e295738458ea18d7
[Fix] Make lua_shape :transform() tableshape-compatible

Change :transform() return values to match tableshape behavior:
- Success: return value (not true, value)
- Failure: return nil, error (not false, error)

This is required for compatibility with lua_selectors check_args which
expects the tableshape return convention. The :check() method still
returns (bool, value_or_error) for new code.
lualib/lua_shape/core.lua