mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Refactoring: changes ModSecurityStringVar to transaction::Variable
Having the variables and collection in place before start to implement persistent storage.
This commit is contained in:
@@ -33,12 +33,12 @@
|
||||
namespace ModSecurity {
|
||||
namespace Variables {
|
||||
|
||||
std::list<ModSecurityStringVar *> *
|
||||
std::list<transaction::Variable *> *
|
||||
TimeEpoch::evaluate(Assay *assay) {
|
||||
std::list<ModSecurityStringVar *> *resl =
|
||||
new std::list<ModSecurityStringVar *>();
|
||||
std::list<transaction::Variable *> *resl =
|
||||
new std::list<transaction::Variable *>();
|
||||
|
||||
resl->push_back(new ModSecurityStringVar("TIME_EPOCH",
|
||||
resl->push_back(new transaction::Variable("TIME_EPOCH",
|
||||
std::to_string(std::time(nullptr))));
|
||||
|
||||
return resl;
|
||||
|
Reference in New Issue
Block a user