Merge in trac #51 and #57 fixes for 2.1.1-rc2.

This commit is contained in:
brectanus
2007-04-05 15:06:35 +00:00
parent f72a707c5b
commit 318a93aeb7
5 changed files with 17 additions and 6 deletions

View File

@@ -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 | PCRE_DOLLAR_ENDONLY, &errptr, &erroffset);
if (regex == NULL) {
*error_msg = apr_psprintf(rule->ruleset->mp, "Error compiling pattern (pos %i): %s",
erroffset, errptr);