From: Vsevolod Stakhov Date: Tue, 24 Mar 2015 16:57:32 +0000 (+0000) Subject: Fix some border cases while parsing expressions. X-Git-Tag: 0.9.0~433 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b09e03b9d09372cf8720b86bd346a9b658f0103;p=rspamd.git Fix some border cases while parsing expressions. --- 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 ++; }