mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-02 14:44:45 +03:00
Constify Transaction on variable resolution
This commit is contained in:
committed by
Felipe Zimmerle
parent
7afcd3046d
commit
1f80055f63
@@ -35,8 +35,8 @@ class WebAppId : public Variable {
|
||||
WebAppId()
|
||||
: Variable("WEBAPPID") { }
|
||||
|
||||
void evaluate(Transaction *transaction,
|
||||
VariableValues *l) override {
|
||||
void evaluate(const Transaction *transaction,
|
||||
VariableValues *l) const noexcept override {
|
||||
const std::string rname = transaction->m_rules->m_secWebAppId.m_value;
|
||||
l->push_back(std::make_shared<VariableValue>(getVariableKeyWithCollection().get(), &rname));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user