mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds method resolveFirstCopy to collections
Using the copy whenever it is necessary to avoid memory leak.
This commit is contained in:
@@ -59,6 +59,9 @@ class Collections :
|
||||
std::string* resolveFirst(const std::string& var);
|
||||
std::string* resolveFirst(const std::string& collectionName,
|
||||
const std::string& var);
|
||||
std::string resolveFirstCopy(const std::string& var);
|
||||
std::string resolveFirstCopy(const std::string& collectionName,
|
||||
const std::string& var);
|
||||
|
||||
void resolveSingleMatch(const std::string& var,
|
||||
std::vector<const Variable *> *l);
|
||||
|
Reference in New Issue
Block a user