]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Fix set_addr validation to prevent malformed addresses 5655/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 8 Oct 2025 10:16:32 +0000 (11:16 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 8 Oct 2025 10:16:32 +0000 (11:16 +0100)
commit4a62d79852c384a2b2f7ef4149616c7acf445ff6
tree4a231428b9861b2ad38140739dccf4cd40e11791
parentd7c204f2375ea616b34bc4e18a666817b9fb4ecc
[Fix] Fix set_addr validation to prevent malformed addresses

The set_addr function now properly checks that both addr.user and addr.domain
are non-empty strings before constructing addr.addr and addr.raw. This prevents
creating malformed addresses like '@domain.com' when addr.user is empty, and
ensures consistent state when addr.domain is empty.
src/plugins/lua/aliases.lua