mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Avoids string copy by working with pointers while resolving variables
This commit is contained in:
@@ -46,7 +46,9 @@ void Time::evaluateInternal(Transaction *transaction,
|
||||
localtime_r(&timer, &timeinfo);
|
||||
strftime(tstr, 200, "%H:%M:%S", &timeinfo);
|
||||
|
||||
l->push_back(new collection::Variable("TIME", std::string(tstr)));
|
||||
transaction->m_variableTime.assign(tstr);
|
||||
l->push_back(new collection::Variable(&m_retName,
|
||||
&transaction->m_variableTime));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user