mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 01:51:52 +03:00
Moves default actions to be part of the rules
This commit is contained in:
@@ -1207,7 +1207,7 @@ expression:
|
||||
YYERROR;
|
||||
}
|
||||
|
||||
if (!driver.m_defaultActions[definedPhase].empty()) {
|
||||
if (!driver.m_rulesSetPhases[definedPhase]->m_defaultActions.empty()) {
|
||||
std::stringstream ss;
|
||||
ss << "SecDefaultActions can only be placed once per phase and configuration context. Phase ";
|
||||
ss << secRuleDefinedPhase;
|
||||
@@ -1217,7 +1217,7 @@ expression:
|
||||
}
|
||||
|
||||
for (actions::Action *a : checkedActions) {
|
||||
driver.m_defaultActions[definedPhase].push_back(
|
||||
driver.m_rulesSetPhases[definedPhase]->m_defaultActions.push_back(
|
||||
std::unique_ptr<actions::Action>(a));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user