mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 06:09:03 +03:00
Extends the direct access model to other collections
This commit is contained in:
committed by
Felipe Zimmerle
parent
ca24b6bb06
commit
f2d149fc5f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user