Skip to content
Snippets Groups Projects
Commit 3b0ec62c authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed problem in rspamd plugin handling deleting of domains or users, fixes #5401

parent 0a18e943
No related branches found
No related tags found
1 merge request!936add CentOS 8 detection
Pipeline #1584 passed
...@@ -94,10 +94,10 @@ class rspamd_plugin { ...@@ -94,10 +94,10 @@ class rspamd_plugin {
} }
$use_data = 'new'; $use_data = 'new';
if(substr($event_name, -7) === 'delete') { if(substr($event_name, -7) === '_delete') {
$mode = 'delete'; $mode = 'delete';
$use_data = 'old'; $use_data = 'old';
} elseif(substr($event_name, -7) === 'insert') { } elseif(substr($event_name, -7) === '_insert') {
$mode = 'insert'; $mode = 'insert';
} else { } else {
$mode = 'update'; $mode = 'update';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment