mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix a few things to provide an easy interface for script bindings
This commit is contained in:
@@ -92,6 +92,14 @@ class RulesProperties {
|
||||
}
|
||||
|
||||
std::vector<Rule *> rules[7];
|
||||
std::vector<Rule *> * getRulesForPhase(int phase) {
|
||||
if (phase > 7)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
return &rules[phase];
|
||||
};
|
||||
|
||||
// ModSecurity::Phases::NUMBER_OF_PHASES
|
||||
std::vector<actions::Action *> defaultActions[7];
|
||||
// ModSecurity::Phases::NUMBER_OF_PHASES
|
||||
|
Reference in New Issue
Block a user