mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Variables resolution results now stored into a std::vector instead of std::list
This commit is contained in:
@@ -33,10 +33,8 @@
|
||||
namespace ModSecurity {
|
||||
namespace Variables {
|
||||
|
||||
std::list<transaction::Variable *> *
|
||||
Time::evaluate(Assay *assay) {
|
||||
std::list<transaction::Variable *> *resl =
|
||||
new std::list<transaction::Variable *>();
|
||||
void Time::evaluateInternal(Assay *assay,
|
||||
std::vector<const transaction::Variable *> *l) {
|
||||
|
||||
char tstr[200];
|
||||
struct tm timeinfo;
|
||||
@@ -48,9 +46,7 @@ std::list<transaction::Variable *> *
|
||||
localtime_r(&timer, &timeinfo);
|
||||
strftime(tstr, 200, "%H:%M:%S", &timeinfo);
|
||||
|
||||
resl->push_back(new transaction::Variable("TIME", std::string(tstr)));
|
||||
|
||||
return resl;
|
||||
l->push_back(new transaction::Variable("TIME", std::string(tstr)));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user