mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds support for ctl:ruleRemoveByTag action
This commit is contained in:
10
src/rules.cc
10
src/rules.cc
@@ -234,6 +234,16 @@ int Rules::evaluate(int phase, Transaction *transaction) {
|
||||
}
|
||||
}
|
||||
|
||||
for (auto &z : transaction->m_ruleRemoveByTag) {
|
||||
if (rule->containsTag(z, transaction) == true) {
|
||||
debug(9, "Skipped rule id '" \
|
||||
+ std::to_string(rule->m_ruleId) \
|
||||
+ "'. Skipped due to a ruleRemoveByTag action.");
|
||||
remove_rule = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
rule->evaluate(transaction, NULL);
|
||||
if (transaction->m_it.disruptive == true) {
|
||||
debug(8, "Skipping this phase as this " \
|
||||
|
Reference in New Issue
Block a user