From 5e480d85a618e325ccf8d974d5bc49eb863b34e9 Mon Sep 17 00:00:00 2001 From: brenosilva Date: Thu, 31 Mar 2011 19:37:55 +0000 Subject: [PATCH] Fix bug in pmf --- apache2/re_operators.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apache2/re_operators.c b/apache2/re_operators.c index caba42d9..1f95a37b 100644 --- a/apache2/re_operators.c +++ b/apache2/re_operators.c @@ -1209,12 +1209,12 @@ static int msre_op_pmFromFile_param_init(msre_rule *rule, char **error_msg) { start = processed; else start = buf; + while ((apr_isspace(*start) != 0) && (*start != '\0')) start++; if(processed != NULL) end = processed + strlen(processed); else end = buf + strlen(buf); - //end = buf + strlen(buf); if (end > start) end--; while ((end > start) && (apr_isspace(*end) != 0)) end--; if (end > start) { @@ -1224,10 +1224,6 @@ static int msre_op_pmFromFile_param_init(msre_rule *rule, char **error_msg) { /* Ignore empty lines and comments */ if ((start == end) || (*start == '#')) continue; -#ifdef DEBUG_CONF - fprintf(stderr, "Adding phrase file pattern: \"%s\"\n", buf); -#endif - acmp_add_pattern(p, start, NULL, NULL, (end - start)); } fn = next;