Adds support to action CtlRuleRemoveById

This commit is contained in:
Felipe Zimmerle
2016-10-26 10:59:24 -03:00
parent 161cc36acf
commit 1c21d1aeba
7 changed files with 117 additions and 0 deletions

View File

@@ -285,6 +285,15 @@ bool Rule::evaluate(Transaction *trasn) {
return evaluateActions(trasn);
}
for (auto &i : trasn->m_ruleRemoveById) {
if (rule_id != i) {
continue;
}
trasn->debug(9, "Rule id: " + std::to_string(rule_id) +
" was skipped due to an ruleRemoveById action...");
return true;
}
ruleMessage = new modsecurity::RuleMessage(this, m_log_message);
#ifndef NO_LOGS