mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 10:20:35 +03:00
Cleanup on Action class
This commit is contained in:
@@ -2421,8 +2421,8 @@ namespace yy {
|
||||
definedPhase = phase->m_phase;
|
||||
secRuleDefinedPhase = phase->m_secRulesPhase;
|
||||
delete phase;
|
||||
} else if (a->action_kind == actions::Action::RunTimeOnlyIfMatchKind ||
|
||||
a->action_kind == actions::Action::RunTimeBeforeMatchAttemptKind) {
|
||||
} else if (a->m_actionKind == actions::Action::RunTimeOnlyIfMatchKind ||
|
||||
a->m_actionKind == actions::Action::RunTimeBeforeMatchAttemptKind) {
|
||||
actions::transformations::None *none = dynamic_cast<actions::transformations::None *>(a);
|
||||
if (none != NULL) {
|
||||
driver.error(yystack_[2].location, "The transformation none is not suitable to be part of the SecDefaultActions");
|
||||
|
||||
Reference in New Issue
Block a user