mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 01:51:52 +03:00
Constify Transaction on variable resolution
This commit is contained in:
@@ -32,7 +32,7 @@ extern char **environ;
|
||||
namespace modsecurity {
|
||||
namespace variables {
|
||||
|
||||
void Env::evaluate(Transaction *transaction, VariableValues *l) {
|
||||
void Env::evaluate(const Transaction *transaction, VariableValues *l) const noexcept {
|
||||
bool checkForKey = getVariableKey()->length() > 0;
|
||||
|
||||
for (char **current = environ; *current; current++) {
|
||||
@@ -57,6 +57,7 @@ void Env::evaluate(Transaction *transaction, VariableValues *l) {
|
||||
getVariableKeyWithCollection()
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user