mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 18:54:23 +03:00
Cleanup on Action class
This commit is contained in:
@@ -36,15 +36,15 @@ bool RulesExceptions::loadUpdateActionById(double id,
|
||||
std::string *error) {
|
||||
|
||||
for (auto &a : *actions) {
|
||||
if (a->action_kind == actions::Action::ConfigurationKind) {
|
||||
if (a->m_actionKind == actions::Action::ConfigurationKind) {
|
||||
std::cout << "General failure, action: " << a->m_name;
|
||||
std::cout << " has not expected to be used with UpdateActionByID.";
|
||||
std::cout << std::endl;
|
||||
} else if (a->action_kind
|
||||
} else if (a->m_actionKind
|
||||
== actions::Action::RunTimeBeforeMatchAttemptKind) {
|
||||
m_action_pre_update_target_by_id.emplace(std::pair<double,
|
||||
std::unique_ptr<actions::Action>>(id , std::move(a)));
|
||||
} else if (a->action_kind == actions::Action::RunTimeOnlyIfMatchKind) {
|
||||
} else if (a->m_actionKind == actions::Action::RunTimeOnlyIfMatchKind) {
|
||||
m_action_pos_update_target_by_id.emplace(std::pair<double,
|
||||
std::unique_ptr<actions::Action>>(id , std::move(a)));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user