mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Cosmetic: Limit the matched log size
This commit is contained in:
parent
a1a1c71d6b
commit
115afffe33
11
src/rule.cc
11
src/rule.cc
@ -402,10 +402,11 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
globalRet = true;
|
||||
|
||||
if (this->op->m_match_message.empty() == true) {
|
||||
ruleMessage->m_match = "Matched \"Operator `" + this->op->op +
|
||||
"' with parameter `" + this->op->param + "' against" \
|
||||
" variable `" + v->m_key + "' (Value: `" + value + "' ) " +
|
||||
"\" at " + v->m_key;
|
||||
ruleMessage->m_match = "Matched \"Operator `" +
|
||||
this->op->op + "' with parameter `" +
|
||||
limitTo(200, this->op->param) +
|
||||
"' against variable `" + v->m_key + "' (Value: `" +
|
||||
value + "' ) \" at " + v->m_key;
|
||||
} else {
|
||||
ruleMessage->m_match = this->op->m_match_message;
|
||||
}
|
||||
@ -430,7 +431,6 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
} else {
|
||||
containsDisruptive = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -538,7 +538,6 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
trasn->m_collections.del("MATCHED_VARS:" + v->m_key);
|
||||
trasn->m_collections.del("MATCHED_VARS_NAMES:" + v->m_key);
|
||||
trasn->m_collections.del("MATCHED_VARS_NAME");
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user