From 383119a1478cc0c8bcc6755aa2c38fd8af4524d1 Mon Sep 17 00:00:00 2001 From: brectanus Date: Tue, 27 Mar 2007 17:22:35 +0000 Subject: [PATCH] Really set PCRE_DOTALL option when compiling the regular expression for the @rx operator as the docs state. (trac #51) --- CHANGES | 3 +++ apache2/re_operators.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 3788f11f..d04c665e 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ 21 Mar 2007 - trunk ------------------- +* Really set PCRE_DOTALL option when compiling the regular expression + for the @rx operator as the docs state. + * Removed CGI style HTTP_* variables in favor of REQUEST_HEADERS:Header-Name. * Store filename/line for each rule and display it and the ID (if available) diff --git a/apache2/re_operators.c b/apache2/re_operators.c index 2e31e1f4..7bbf8b61 100644 --- a/apache2/re_operators.c +++ b/apache2/re_operators.c @@ -64,7 +64,7 @@ static int msre_op_rx_param_init(msre_rule *rule, char **error_msg) { *error_msg = NULL; /* Compile pattern */ - regex = msc_pregcomp(rule->ruleset->mp, pattern, 0, &errptr, &erroffset); + regex = msc_pregcomp(rule->ruleset->mp, pattern, PCRE_DOTALL, &errptr, &erroffset); if (regex == NULL) { *error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern (pos %i): %s", erroffset, errptr);