mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-02 14:44:45 +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
@@ -37,9 +37,8 @@ class WebAppId : public Variable {
|
||||
|
||||
void evaluate(Transaction *transaction,
|
||||
std::vector<std::shared_ptr<const VariableValue>> *l) override {
|
||||
const std::string name("WEBAPPID");
|
||||
const std::string rname = transaction->m_rules->m_secWebAppId.m_value;
|
||||
l->push_back(std::make_shared<VariableValue>(&m_name, &rname));
|
||||
l->push_back(std::make_shared<VariableValue>(getVariableKeyWithCollection().get(), &rname));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user