It is invalid to issue a warning based purely on pattern matching
between the matched content and certain http methods. Without a check
for which keyword exists in the rule, it makes more sense to issue this
as a general note.
Bug 5177
"is interpreted as regular 'fast_pattern'");
}
if (LooksLikeHTTPMethod(cd->content, cd->content_len)) {
- AnalyzerWarning(ctx,
+ AnalyzerNote(ctx,
(char *)"pattern looks like it inspects HTTP, use http.request_line or "
"http.method and http.uri instead for improved performance");
}
if (LooksLikeHTTPUA(cd->content, cd->content_len)) {
- AnalyzerWarning(ctx,
+ AnalyzerNote(ctx,
(char *)"pattern looks like it inspects HTTP, use http.user_agent "
"or http.header for improved performance");
}