mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-04 05:22:57 +03:00
refactoring: Moves Phases enum to outside ModSecurity class
This commit is contained in:
@@ -95,5 +95,23 @@ bool RulesExceptions::contains(int a) {
|
||||
}
|
||||
|
||||
|
||||
bool RulesExceptions::merge(const RulesExceptions& from) {
|
||||
for (int a : from.m_numbers) {
|
||||
bool ret = addNumber(a);
|
||||
if (ret == false) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
for (auto b : from.m_ranges) {
|
||||
bool ret = addRange(b.first, b.second);
|
||||
if (ret == false) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
} // namespace modsecurity
|
||||
|
||||
|
Reference in New Issue
Block a user