Renames class Assay to Transaction

This commit is contained in:
Felipe Zimmerle
2016-01-13 14:38:37 -03:00
parent f3fd5d6621
commit a51e707517
249 changed files with 2961 additions and 1235 deletions

View File

@@ -18,7 +18,7 @@
#include <iostream>
#include <string>
#include "modsecurity/assay.h"
#include "modsecurity/transaction.h"
#include "modsecurity/rule.h"
#include "modsecurity/intervention.h"
@@ -32,13 +32,13 @@ Block::Block(std::string action)
}
bool Block::evaluate(Rule *rule, Assay *assay) {
bool Block::evaluate(Rule *rule, Transaction *transaction) {
#ifndef NO_LOGS
assay->debug(8, "Running action block");
transaction->debug(8, "Running action block");
#endif
for (Action *a : rule->actions_runtime_pos) {
if (a->isDisruptive() == true) {
assay->actions.push_back(a);
transaction->actions.push_back(a);
}
}
return true;