Really set PCRE_DOTALL option when compiling the regular expression for the @rx operator as the docs state. (trac #51)

This commit is contained in:
brectanus 2007-03-27 17:22:35 +00:00
parent f6de76b053
commit 383119a147
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
21 Mar 2007 - trunk 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. * 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) * Store filename/line for each rule and display it and the ID (if available)

View File

@ -64,7 +64,7 @@ static int msre_op_rx_param_init(msre_rule *rule, char **error_msg) {
*error_msg = NULL; *error_msg = NULL;
/* Compile pattern */ /* 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) { if (regex == NULL) {
*error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern (pos %i): %s", *error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern (pos %i): %s",
erroffset, errptr); erroffset, errptr);