]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Fix issues in logstats/mapstats from code review 5885/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Feb 2026 10:00:14 +0000 (10:00 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Feb 2026 10:00:14 +0000 (10:00 +0000)
commitc921f72995e388078c84580d9dd8766ed76d8187
treedea8bf41cacc5e6f929f9d4d70e608aadb0961d6
parent4878834f42ffcdee27975f37b173f2cfa0848ba0
[Fix] Fix issues in logstats/mapstats from code review

- Shell-quote paths in io.popen() to prevent injection
- Fix typo: correllations -> correlations in JSON output
- Pre-compile ignored symbol regexes instead of recompiling per call
- Deduplicate score change output logic in logstats
- Use native rspamd_ip equality instead of string comparison in mapstats
lualib/lua_log_utils.lua
lualib/rspamadm/logstats.lua
lualib/rspamadm/mapstats.lua