mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 02:40:35 +03:00
Refactoring on variables::Variable
Using the references on key and collection as shared pointers
This commit is contained in:
committed by
Felipe Zimmerle
parent
6528c95765
commit
d5cae10d3a
@@ -73,7 +73,7 @@ bool SetVar::execute(Transaction *t) const noexcept {
|
||||
} else if (user) {
|
||||
m_variableNameExpanded = user->evaluateRunTimeString(t);
|
||||
} else {
|
||||
m_variableNameExpanded = m_variable->m_name;
|
||||
m_variableNameExpanded = *m_variable->getVariableKey();
|
||||
}
|
||||
|
||||
if (m_operation == setOperation) {
|
||||
@@ -126,7 +126,7 @@ bool SetVar::execute(Transaction *t) const noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
ms_dbg_a(t, 8, "Saving variable: " + m_variable->m_collectionName \
|
||||
ms_dbg_a(t, 8, "Saving variable: " + *m_variable->getVariableKeyWithCollection() \
|
||||
+ ":" + m_variableNameExpanded + " with value: " + targetValue);
|
||||
|
||||
if (tx) {
|
||||
|
||||
Reference in New Issue
Block a user