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

@@ -16,6 +16,7 @@
#include <string>
#include "modsecurity/actions/action.h"
#include "modsecurity/rule_message.h"
#ifndef SRC_ACTIONS_BLOCK_H_
#define SRC_ACTIONS_BLOCK_H_
@@ -33,7 +34,8 @@ class Block : public Action {
public:
explicit Block(std::string action) : Action(action) { }
bool evaluate(Rule *rule, Transaction *transaction) override;
bool evaluate(Rule *rule, Transaction *transaction,
RuleMessage *rm) override;
void fillIntervention(ModSecurityIntervention *i) override;
bool isDisruptive() override { return true; }
};