mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Rename TX_SEVERITY to HIGHEST_SEVERITY, fix and document.
This commit is contained in:
@@ -1254,8 +1254,9 @@ static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
|
||||
msr->matched_var = apr_pstrdup(msr->mp, var->name);
|
||||
|
||||
/* Keep track of the highest severity matched so far */
|
||||
if (acting_actionset->severity < msr->tx_severity) {
|
||||
msr->tx_severity = acting_actionset->severity;
|
||||
if ((acting_actionset->severity > 0) && (acting_actionset->severity < msr->highest_severity))
|
||||
{
|
||||
msr->highest_severity = acting_actionset->severity;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user