actions: Removes Rule parameter from runtime execute

Generals organization on the Action class
This commit is contained in:
Felipe Zimmerle
2020-05-18 21:33:03 -03:00
parent 67b08dfe43
commit 8aa3e3439d
188 changed files with 3096 additions and 2758 deletions

View File

@@ -13,22 +13,18 @@
*
*/
#include "src/actions/rule_id.h"
#include <iostream>
#include <string>
#include "modsecurity/transaction.h"
#include "modsecurity/rule.h"
#include "src/rule_with_actions.h"
namespace modsecurity {
namespace actions {
bool RuleId::init(std::string *error) {
std::string a = m_parser_payload;
std::string a = m_parserPayload;
try {
m_ruleId = std::stod(a);
@@ -50,11 +46,5 @@ bool RuleId::init(std::string *error) {
}
bool RuleId::execute(RuleWithActions *rule, Transaction *transaction) {
rule->setId(m_ruleId);
return true;
}
} // namespace actions
} // namespace modsecurity