mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds missing check for runtime ctl:ruleRemoveByTag
This commit is contained in:
parent
7e8782d977
commit
db298696fa
19
src/rules.cc
19
src/rules.cc
@ -239,13 +239,18 @@ int Rules::evaluate(int phase, Transaction *t) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto &z : t->m_ruleRemoveByTag) {
|
if (t->m_ruleRemoveByTag.empty() == false) {
|
||||||
if (rule->containsTag(z, t) == true) {
|
for (auto &z : t->m_ruleRemoveByTag) {
|
||||||
ms_dbg_a(t, 9, "Skipped rule id '" \
|
if (rule->containsTag(z, t) == true) {
|
||||||
+ std::to_string(rule->m_ruleId) \
|
ms_dbg_a(t, 9, "Skipped rule id '" \
|
||||||
+ "'. Skipped due to a ruleRemoveByTag action.");
|
+ std::to_string(rule->m_ruleId) \
|
||||||
remove_rule = true;
|
+ "'. Skipped due to a ruleRemoveByTag action.");
|
||||||
break;
|
remove_rule = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (remove_rule) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user