mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 11:06:40 +03:00
Replaces getKeyWithCollection with getName on VariableValue
This commit is contained in:
@@ -63,7 +63,7 @@ void RemoteUser::evaluate(Transaction *transaction,
|
||||
}
|
||||
transaction->m_variableRemoteUser.assign(std::string(base64, 0, pos));
|
||||
|
||||
auto var = std::make_shared<VariableValue>(&l2[0]->getKeyWithCollection(), &transaction->m_variableRemoteUser);
|
||||
auto var = std::make_shared<VariableValue>(&l2[0]->getName(), &transaction->m_variableRemoteUser);
|
||||
|
||||
for (auto &i : l2[0]->getOrigin()) {
|
||||
var->addOrigin(i);
|
||||
|
||||
@@ -701,7 +701,7 @@ class Variables : public std::vector<Variable *> {
|
||||
if (r) {
|
||||
return r->m_r.searchAll(v->getKey()).size() > 0;
|
||||
}
|
||||
return v->getKeyWithCollection() == *m->getVariableKeyWithCollection();
|
||||
return v->getName() == *m->getVariableKeyWithCollection();
|
||||
}) != end();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user