mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Avoids string copy by working with pointers while resolving variables
This commit is contained in:
@@ -47,7 +47,10 @@ void TimeWDay::evaluateInternal(Transaction *transaction,
|
||||
int a = atoi(tstr);
|
||||
a--;
|
||||
|
||||
l->push_back(new collection::Variable("TIME_WDAY", std::to_string(a)));
|
||||
transaction->m_variableTimeWDay.assign(tstr);
|
||||
|
||||
l->push_back(new collection::Variable(&m_retName,
|
||||
&transaction->m_variableTimeWDay));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user