mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 18:54:23 +03:00
actions: Removes Rule parameter from runtime execute
Generals organization on the Action class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user