mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-13 15:07:10 +03:00
Fixed an issue where @pm was not ignoring case.
Documented case insensitivity of @pm.
This commit is contained in:
4
CHANGES
4
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 ...
|
* Truncate long parameters in log message for "Match of ... against ...
|
||||||
required" messages.
|
required" messages.
|
||||||
|
|
||||||
|
|||||||
@@ -782,6 +782,9 @@ apr_status_t acmp_process_quick(ACMPT *acmpt, const char **match, const char *da
|
|||||||
|
|
||||||
while (data < end) {
|
while (data < end) {
|
||||||
acmp_utf8_char_t letter = (unsigned char)*data++;
|
acmp_utf8_char_t letter = (unsigned char)*data++;
|
||||||
|
|
||||||
|
if (parser->is_case_sensitive == 0) letter = utf8_lcase(letter);
|
||||||
|
|
||||||
go_to = NULL;
|
go_to = NULL;
|
||||||
while (go_to == NULL) {
|
while (go_to == NULL) {
|
||||||
go_to = acmp_goto(node, letter);
|
go_to = acmp_goto(node, letter);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
Manual</title>
|
Manual</title>
|
||||||
|
|
||||||
<articleinfo>
|
<articleinfo>
|
||||||
<releaseinfo>Version 2.5.10-dev1 (May 15, 2009)</releaseinfo>
|
<releaseinfo>Version 2.5.10-dev1 (May 29, 2009)</releaseinfo>
|
||||||
|
|
||||||
<copyright>
|
<copyright>
|
||||||
<year>2004-2009</year>
|
<year>2004-2009</year>
|
||||||
@@ -5555,7 +5555,7 @@ end</programlisting>
|
|||||||
<para><emphasis>Description:</emphasis> Phrase Match operator. This
|
<para><emphasis>Description:</emphasis> Phrase Match operator. This
|
||||||
operator uses a set based matching engine (Aho-Corasick) for faster
|
operator uses a set based matching engine (Aho-Corasick) for faster
|
||||||
matches of keyword lists. It will match any one of its arguments
|
matches of keyword lists. It will match any one of its arguments
|
||||||
anywhere in the target value.</para>
|
anywhere in the target value. The match is case insensitive.</para>
|
||||||
|
|
||||||
<para>Example:</para>
|
<para>Example:</para>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user