Changes the actions to affect the ruleMessage instead of transaction

This commit is contained in:
Felipe Zimmerle
2016-11-28 09:59:50 -03:00
parent 8fa0523fe0
commit 2930d40d57
10 changed files with 30 additions and 19 deletions

View File

@@ -26,13 +26,13 @@ namespace modsecurity {
namespace actions {
bool Block::evaluate(Rule *rule, Transaction *transaction) {
bool Block::evaluate(Rule *rule, Transaction *transaction, RuleMessage *rm) {
#ifndef NO_LOGS
transaction->debug(8, "Running action block");
#endif
for (Action *a : rule->actions_runtime_pos) {
for (Action *a : rule->m_actionsRuntimePos) {
if (a->isDisruptive() == true) {
transaction->m_actions.push_back(a);
rm->m_tmp_actions.push_back(a);
}
}
return true;