diff --git a/CHANGES b/CHANGES index 3cfe9a3e..6f695408 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ -20 May 2009 - 2.5.10-dev +29 May 2009 - 2.5.10-dev ------------------------ + * Fixed @pm/@pmFromFile case insensitivity. + * Truncate long parameters in log message for "Match of ... against ... required" messages. diff --git a/apache2/acmp.c b/apache2/acmp.c index 4293e2ca..d8c0c0aa 100644 --- a/apache2/acmp.c +++ b/apache2/acmp.c @@ -782,6 +782,9 @@ apr_status_t acmp_process_quick(ACMPT *acmpt, const char **match, const char *da while (data < end) { acmp_utf8_char_t letter = (unsigned char)*data++; + + if (parser->is_case_sensitive == 0) letter = utf8_lcase(letter); + go_to = NULL; while (go_to == NULL) { go_to = acmp_goto(node, letter); diff --git a/doc/modsecurity2-apache-reference.xml b/doc/modsecurity2-apache-reference.xml index e26bc675..5ddaa8d5 100644 --- a/doc/modsecurity2-apache-reference.xml +++ b/doc/modsecurity2-apache-reference.xml @@ -6,7 +6,7 @@ Manual - Version 2.5.10-dev1 (May 15, 2009) + Version 2.5.10-dev1 (May 29, 2009) 2004-2009 @@ -5555,7 +5555,7 @@ end Description: Phrase Match operator. This operator uses a set based matching engine (Aho-Corasick) for faster matches of keyword lists. It will match any one of its arguments - anywhere in the target value. + anywhere in the target value. The match is case insensitive. Example: