mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-16 08:27:10 +03:00
Huge performance improvement: passing variables as pointers avoiding copies
This commit is contained in:
@@ -28,9 +28,11 @@ using ModSecurity::Variables::Variations::Exclusion;
|
||||
namespace ModSecurity {
|
||||
namespace Variables {
|
||||
|
||||
std::list<std::pair<std::string, std::string>>
|
||||
std::list<ModSecurityStringVar *> *
|
||||
Variable::evaluate(Assay *assay) {
|
||||
return assay->resolve_variable(this->name);
|
||||
std::list<ModSecurityStringVar *> *l = new std::list<ModSecurityStringVar *>();
|
||||
assay->resolve_variable(this->name, l);
|
||||
return l;
|
||||
}
|
||||
|
||||
std::string Variable::to_s(
|
||||
|
||||
Reference in New Issue
Block a user