mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +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,10 +33,10 @@
|
||||
namespace ModSecurity {
|
||||
namespace Variables {
|
||||
|
||||
std::list<ModSecurityStringVar *> *
|
||||
std::list<transaction::Variable *> *
|
||||
TimeYear::evaluate(Assay *assay) {
|
||||
std::list<ModSecurityStringVar *> *resl =
|
||||
new std::list<ModSecurityStringVar *>();
|
||||
std::list<transaction::Variable *> *resl =
|
||||
new std::list<transaction::Variable *>();
|
||||
|
||||
char tstr[200];
|
||||
struct tm timeinfo;
|
||||
@@ -48,7 +48,7 @@ std::list<ModSecurityStringVar *> *
|
||||
localtime_r(&timer, &timeinfo);
|
||||
strftime(tstr, 200, "%Y", &timeinfo);
|
||||
|
||||
resl->push_back(new ModSecurityStringVar("TIME_YEAR", std::string(tstr)));
|
||||
resl->push_back(new transaction::Variable("TIME_YEAR", std::string(tstr)));
|
||||
|
||||
return resl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user