Adds support to SecRuleRemoveByMsg

This commit is contained in:
Felipe Zimmerle
2017-08-16 23:42:13 -03:00
parent 562c2b2f5a
commit d7eab6b7a3
10 changed files with 5220 additions and 5109 deletions

View File

@@ -850,4 +850,15 @@ bool Rule::containsTag(const std::string& name, Transaction *t) {
}
bool Rule::containsMsg(const std::string& name, Transaction *t) {
for (auto &z : this->m_actionsRuntimePos) {
actions::Msg *msg = dynamic_cast<actions::Msg *> (z);
if (msg != NULL && msg->data(t) == name) {
return true;
}
}
return false;
}
} // namespace modsecurity