mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +03:00
Adds missing check for runtime ctl:ruleRemoveByTag
This commit is contained in:
committed by
Felipe Zimmerle
parent
7e8782d977
commit
db298696fa
@@ -239,6 +239,7 @@ int Rules::evaluate(int phase, Transaction *t) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (t->m_ruleRemoveByTag.empty() == false) {
|
||||||
for (auto &z : t->m_ruleRemoveByTag) {
|
for (auto &z : t->m_ruleRemoveByTag) {
|
||||||
if (rule->containsTag(z, t) == true) {
|
if (rule->containsTag(z, t) == true) {
|
||||||
ms_dbg_a(t, 9, "Skipped rule id '" \
|
ms_dbg_a(t, 9, "Skipped rule id '" \
|
||||||
@@ -248,6 +249,10 @@ int Rules::evaluate(int phase, Transaction *t) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (remove_rule) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rule->evaluate(t, NULL);
|
rule->evaluate(t, NULL);
|
||||||
if (t->m_it.disruptive == true) {
|
if (t->m_it.disruptive == true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user