From 2b09e03b9d09372cf8720b86bd346a9b658f0103 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Mar 2015 16:57:32 +0000 Subject: [PATCH] Fix some border cases while parsing expressions. --- src/libutil/expression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/expression.c b/src/libutil/expression.c index 06a3af8e8..350a9aebf 100644 --- a/src/libutil/expression.c +++ b/src/libutil/expression.c @@ -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 ++; } -- 2.39.5