From 5da9a05d1cdf664ea89b235d80022c9f0230b60b Mon Sep 17 00:00:00 2001 From: brectanus Date: Wed, 19 Dec 2007 00:26:19 +0000 Subject: [PATCH] Remove the callback from the verifyCC regex (not used anymore). --- apache2/re_operators.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apache2/re_operators.c b/apache2/re_operators.c index e21c0182..1872fd80 100644 --- a/apache2/re_operators.c +++ b/apache2/re_operators.c @@ -964,13 +964,12 @@ static int msre_op_verifyCC_init(msre_rule *rule, char **error_msg) { const char *errptr = NULL; int erroffset; msc_regex_t *regex; - const char *pattern = apr_psprintf(rule->ruleset->mp, "(?:%s)(?C)", rule->op_param); /* Add on a callback to the end */ if (error_msg == NULL) return -1; *error_msg = NULL; - /* Compile pattern */ - regex = msc_pregcomp(rule->ruleset->mp, pattern, PCRE_DOTALL | PCRE_MULTILINE, &errptr, &erroffset); + /* Compile rule->op_param */ + regex = msc_pregcomp(rule->ruleset->mp, rule->op_param, PCRE_DOTALL | PCRE_MULTILINE, &errptr, &erroffset); if (regex == NULL) { *error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern (offset %d): %s", erroffset, errptr);