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 2ee9ccffa9
commit c90325062b
192 changed files with 3239 additions and 3038 deletions

View File

@@ -13,16 +13,11 @@
*
*/
#include "src/actions/maturity.h"
#include <iostream>
#include <string>
#include "modsecurity/actions/action.h"
#include "modsecurity/transaction.h"
#include "modsecurity/rule.h"
#include "src/rule_with_actions.h"
namespace modsecurity {
namespace actions {
@@ -30,9 +25,9 @@ namespace actions {
bool Maturity::init(std::string *error) {
try {
m_maturity = std::stoi(m_parser_payload);
m_maturity = std::stoi(m_parserPayload);
} catch (...) {
error->assign("Maturity: The input \"" + m_parser_payload + "\" is " \
error->assign("Maturity: The input \"" + m_parserPayload + "\" is " \
"not a number.");
return false;
}
@@ -40,10 +35,5 @@ bool Maturity::init(std::string *error) {
}
bool Maturity::execute(RuleWithActions *rule, Transaction *transaction) {
return true;
}
} // namespace actions
} // namespace modsecurity