Refactoring: changes ModSecurityStringVar to transaction::Variable

Having the variables and collection in place before start to implement
persistent storage.
This commit is contained in:
Felipe Zimmerle
2015-10-28 13:53:07 -03:00
parent 7afc07914f
commit 776502e021
38 changed files with 115 additions and 129 deletions

View File

@@ -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) {