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);