mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Refactoring: changes ModSecurityStringVar to transaction::Variable
Having the variables and collection in place before start to implement persistent storage.
This commit is contained in:
@@ -284,7 +284,7 @@ bool Rule::evaluate(Assay *assay) {
|
||||
Exclusion *exl = dynamic_cast<Exclusion *>(variable);
|
||||
|
||||
if (exl != NULL) {
|
||||
std::list<ModSecurityStringVar *> *z =
|
||||
std::list<transaction::Variable *> *z =
|
||||
variable->evaluate(assay);
|
||||
for (auto &y : *z) {
|
||||
exclusions.push_back(y->m_key);
|
||||
@@ -301,7 +301,7 @@ bool Rule::evaluate(Assay *assay) {
|
||||
continue;
|
||||
}
|
||||
|
||||
std::list<ModSecurityStringVar *> *e =
|
||||
std::list<transaction::Variable *> *e =
|
||||
variable->evaluate(assay);
|
||||
|
||||
for (auto &v : *e) {
|
||||
|
Reference in New Issue
Block a user