mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
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:
parent
f6de76b053
commit
383119a147
3
CHANGES
3
CHANGES
@ -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)
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user