mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 06:09:03 +03:00
Huge improve in the variables resolution time
This commit is contained in:
@@ -38,7 +38,13 @@ std::list<transaction::Variable *> *
|
||||
std::list<transaction::Variable *> *resl =
|
||||
new std::list<transaction::Variable *>();
|
||||
|
||||
resl->push_back(new transaction::Variable("TX:0", "teste"));
|
||||
if (m_type == SingleMatch) {
|
||||
assay->m_collections.resolveSingleMatch(m_name, "TX", resl);
|
||||
} else if (m_type == MultipleMatches) {
|
||||
assay->m_collections.resolveMultiMatches(m_name, "TX", resl);
|
||||
} else if (m_type == RegularExpression) {
|
||||
assay->m_collections.resolveRegularExpression(m_name, "TX", resl);
|
||||
}
|
||||
|
||||
return resl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user