Extends the direct access model to other collections

This commit is contained in:
Felipe Zimmerle
2017-01-26 23:13:38 -03:00
committed by Felipe Zimmerle
parent ca24b6bb06
commit f2d149fc5f
157 changed files with 7711 additions and 4959 deletions

View File

@@ -34,17 +34,6 @@ namespace modsecurity {
namespace Variables {
void Tx::evaluateInternal(Transaction *transaction,
std::vector<const collection::Variable *> *l) {
if (m_type == SingleMatch) {
transaction->m_collections.resolveSingleMatch(m_name, "TX", l);
} else if (m_type == MultipleMatches) {
transaction->m_collections.resolveMultiMatches(m_name, "TX", l);
} else if (m_type == RegularExpression) {
transaction->m_collections.resolveRegularExpression(m_name, "TX", l);
}
}
} // namespace Variables
} // namespace modsecurity