mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Warming up to the remote collections support
Huge refactoring to have the code in shape to later support the remote collections with different backends.
This commit is contained in:
@@ -305,7 +305,7 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
for (int i = 0; i < variables->size(); i++) {
|
||||
Variable *variable = variables->at(i);
|
||||
if (variable->m_isExclusion) {
|
||||
std::vector<const transaction::Variable *> z;
|
||||
std::vector<const collection::Variable *> z;
|
||||
variable->evaluateInternal(trasn, &z);
|
||||
for (auto &y : z) {
|
||||
exclusions.push_back(y->m_key);
|
||||
@@ -321,7 +321,7 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
continue;
|
||||
}
|
||||
|
||||
std::vector<const transaction::Variable *> e;
|
||||
std::vector<const collection::Variable *> e;
|
||||
variable->evaluateInternal(trasn, &e);
|
||||
|
||||
for (auto &v : e) {
|
||||
|
Reference in New Issue
Block a user