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