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:
@@ -28,8 +28,10 @@ namespace Variables {
|
||||
|
||||
void HighestSeverity::evaluateInternal(Transaction *transaction,
|
||||
std::vector<const collection::Variable *> *l) {
|
||||
l->push_back(new collection::Variable("HIGHEST_SEVERITY",
|
||||
std::to_string(transaction->m_highestSeverityAction)));
|
||||
transaction->m_variableHighestSeverityAction.assign(
|
||||
std::to_string(transaction->m_highestSeverityAction));
|
||||
l->push_back(new collection::Variable(&m_retName,
|
||||
&transaction->m_variableHighestSeverityAction));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user