mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Adds support to MATCHED_VARS_NAMES variable
This commit is contained in:
@@ -123,9 +123,12 @@ bool Rule::evaluate(Assay *assay) {
|
||||
assay->store_variable("MATCHED_VAR", value);
|
||||
}
|
||||
assay->store_variable("MATCHED_VARS:" + v.first, value);
|
||||
assay->store_variable("MATCHED_VARS_NAMES:" + v.first,
|
||||
v.first);
|
||||
this->chainedRule->evaluate(assay);
|
||||
assay->update_variable_first("MATCHED_VAR", "");
|
||||
assay->delete_variable("MATCHED_VARS:" + v.first);
|
||||
assay->delete_variable("MATCHED_VARS_NAMES:" + v.first);
|
||||
}
|
||||
} else {
|
||||
assay->debug(4, "Rule returned 0.");
|
||||
|
Reference in New Issue
Block a user