mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Huge improve in the variables resolution time
This commit is contained in:
@@ -137,8 +137,59 @@ std::list<transaction::Variable *> *
|
||||
new std::list<transaction::Variable *>();
|
||||
|
||||
resolve(var, l);
|
||||
}
|
||||
|
||||
return l;
|
||||
|
||||
void Collections::resolveSingleMatch(const std::string& var,
|
||||
std::list<transaction::Variable *> *l) {
|
||||
|
||||
m_transient.resolveSingleMatch(var, l);
|
||||
}
|
||||
|
||||
|
||||
void Collections::resolveSingleMatch(const std::string& var,
|
||||
const std::string& collection,
|
||||
std::list<transaction::Variable *> *l) {
|
||||
|
||||
try {
|
||||
this->at(collection)->resolveSingleMatch(var, l);
|
||||
} catch (...) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void Collections::resolveMultiMatches(const std::string& var,
|
||||
std::list<transaction::Variable *> *l) {
|
||||
|
||||
m_transient.resolveMultiMatches(var, l);
|
||||
}
|
||||
|
||||
|
||||
void Collections::resolveMultiMatches(const std::string& var,
|
||||
const std::string& collection,
|
||||
std::list<transaction::Variable *> *l) {
|
||||
try {
|
||||
this->at(collection)->resolveMultiMatches(var, l);
|
||||
} catch (...) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void Collections::resolveRegularExpression(const std::string& var,
|
||||
std::list<transaction::Variable *> *l) {
|
||||
m_transient.resolveRegularExpression(var, l);
|
||||
}
|
||||
|
||||
|
||||
void Collections::resolveRegularExpression(const std::string& var,
|
||||
const std::string& collection,
|
||||
std::list<transaction::Variable *> *l) {
|
||||
|
||||
try {
|
||||
this->at(collection)->resolveRegularExpression(var, l);
|
||||
} catch (...) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace transaction
|
||||
|
Reference in New Issue
Block a user