mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Variables resolution results now stored into a std::vector instead of std::list
This commit is contained in:
@@ -33,15 +33,10 @@
|
||||
namespace ModSecurity {
|
||||
namespace Variables {
|
||||
|
||||
std::list<transaction::Variable *> *
|
||||
TimeEpoch::evaluate(Assay *assay) {
|
||||
std::list<transaction::Variable *> *resl =
|
||||
new std::list<transaction::Variable *>();
|
||||
|
||||
resl->push_back(new transaction::Variable("TIME_EPOCH",
|
||||
void TimeEpoch::evaluateInternal(Assay *assay,
|
||||
std::vector<const transaction::Variable *> *l) {
|
||||
l->push_back(new transaction::Variable("TIME_EPOCH",
|
||||
std::to_string(std::time(nullptr))));
|
||||
|
||||
return resl;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user