mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-02 22:54:54 +03:00
Reduce the workload on VariableValue
Last compute at the last minute, if needed.
This commit is contained in:
committed by
Felipe Zimmerle
parent
8fa4fc67af
commit
820396f784
@@ -46,8 +46,9 @@ void Time::evaluate(Transaction *transaction,
|
||||
localtime_r(&timer, &timeinfo);
|
||||
strftime(tstr, 200, "%H:%M:%S", &timeinfo);
|
||||
|
||||
transaction->m_variableTime.assign(tstr);
|
||||
l->push_back(std::make_shared<VariableValue>(&m_retName, &transaction->m_variableTime));
|
||||
l->push_back(std::make_shared<VariableValue>(
|
||||
std::unique_ptr<std::string>(new std::string(tstr)),
|
||||
&m_retName));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user