diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-23 18:41:00 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-23 18:41:00 +0400 |
commit | d3c91b53ed3ef7c5aecdf09954cb7d92f84cbeec (patch) | |
tree | 3cabda829999d97c3af9e70d6069d42f92450981 /src/expressions.c | |
parent | 77cff375a07ba41b00c37baff72111f0b21ba9ae (diff) | |
download | rspamd-d3c91b53ed3ef7c5aecdf09954cb7d92f84cbeec.tar.gz rspamd-d3c91b53ed3ef7c5aecdf09954cb7d92f84cbeec.zip |
* Handle parsed regexp as not-parsed regexps in expressions
Diffstat (limited to 'src/expressions.c')
-rw-r--r-- | src/expressions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expressions.c b/src/expressions.c index ba24ae252..cc5e09072 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -707,7 +707,7 @@ get_function_arg (struct expression *expr, struct worker_task *task, gboolean wa } if (expr->next == NULL) { res = memory_pool_alloc (task->task_pool, sizeof (struct expression_argument)); - if (expr->type == EXPR_REGEXP || expr->type == EXPR_STR) { + if (expr->type == EXPR_REGEXP || expr->type == EXPR_STR || expr->type == EXPR_REGEXP_PARSED) { res->type = EXPRESSION_ARGUMENT_NORMAL; res->data = expr->content.operand; } @@ -729,7 +729,7 @@ get_function_arg (struct expression *expr, struct worker_task *task, gboolean wa it = expr; while (it) { - if (it->type == EXPR_REGEXP || it->type == EXPR_STR) { + if (it->type == EXPR_REGEXP || it->type == EXPR_REGEXP_PARSED || it->type == EXPR_STR) { g_queue_free (stack); res->type = EXPRESSION_ARGUMENT_EXPR; res->data = expr; |