]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix '~' behaviour in composites
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 1 Jun 2018 16:22:17 +0000 (17:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 1 Jun 2018 16:22:17 +0000 (17:22 +0100)
src/libserver/composites.c

index a90b5c032c7298179bdc8904c533798c0d9d8846..f3dc7a956fccdab1a60338b4054fbdbfe9493733 100644 (file)
@@ -266,7 +266,7 @@ rspamd_composite_expr_process (gpointer input, rspamd_expression_atom_t *atom)
                        t = *beg;
 
                        if (t == '~') {
-                               nrd->action &= ~RSPAMD_COMPOSITE_REMOVE_WEIGHT;
+                               nrd->action &= ~RSPAMD_COMPOSITE_REMOVE_SYMBOL;
                        }
                        else if (t == '-') {
                                nrd->action &= ~(RSPAMD_COMPOSITE_REMOVE_WEIGHT|