]> source.dussan.org Git - rspamd.git/commitdiff
Fix parsing of regexp atoms.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 12:44:36 +0000 (12:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 12:44:36 +0000 (12:44 +0000)
src/libmime/mime_expressions.c

index ff9f2b24e11b7ccdef6a9f7fbb1e0b4755fbcd8c..036620984053b05a7fe678a5d6809dd1a6dc68a7 100644 (file)
@@ -520,7 +520,7 @@ rspamd_mime_expr_parse (const gchar *line, gsize len,
                                /* Function */
                                state = got_obrace;
                        }
-                       else if (!g_ascii_isalnum (t) && t != '_' && t != '-') {
+                       else if (!g_ascii_isalnum (t) && t != '_' && t != '-' && t != '=') {
                                /* Likely lua function, identified by just a string */
                                type = MIME_ATOM_LUA_FUNCTION;
                                state = end_atom;