mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Changes RULE variable group to be save at transient collection
This commit is contained in:
@@ -82,6 +82,9 @@ bool Severity::evaluate(Rule *rule, Transaction *transaction,
|
||||
if (transaction->m_highestSeverityAction > this->m_severity) {
|
||||
transaction->m_highestSeverityAction = this->m_severity;
|
||||
}
|
||||
|
||||
transaction->m_collections.storeOrUpdateFirst("RULE:severity",
|
||||
std::to_string(m_severity));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user