Fix some name handling for ARGS_*NAMES: regex SecRuleUpdateTargetById, etc.

This commit is contained in:
Martin Vierula
2022-01-04 11:47:18 -08:00
parent 76ce6739bf
commit 1a965a49ad
6 changed files with 127 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ class AnchoredSetVariableTranslationProxy {
{
m_translate = [](std::string *name, std::vector<const VariableValue *> *l) {
for (int i = 0; i < l->size(); ++i) {
VariableValue *newVariableValue = new VariableValue(name, &l->at(i)->getKey());
VariableValue *newVariableValue = new VariableValue(name, &l->at(i)->getKey(), &l->at(i)->getKey());
const VariableValue *oldVariableValue = l->at(i);
l->at(i) = newVariableValue;
for (auto &oldOrigin : oldVariableValue->getOrigin()) {