]> source.dussan.org Git - rspamd.git/commitdiff
Fix some border cases while parsing expressions.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 16:57:32 +0000 (16:57 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 16:57:32 +0000 (16:57 +0000)
src/libutil/expression.c

index 06a3af8e85db3c0b5dd7fdc0350c078f34657bdd..350a9aebf8b6d34ad4bc071b8cb7a01d5f1eb071 100644 (file)
@@ -387,7 +387,7 @@ rspamd_parse_expression (const gchar *line, gsize len,
                                p ++;
                        }
                        else {
-                               if (p == end - 1) {
+                               if (p == end - 1 && g_ascii_isdigit (*p)) {
                                        p ++;
                                }