mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 06:09:03 +03:00
Constify Transaction on variable resolution
This commit is contained in:
@@ -67,13 +67,7 @@ class RunTimeString {
|
||||
void append(std::unique_ptr<Variable> var);
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* FIXME: Transaction should be const here. Variables resolution does
|
||||
* not change anything on transaction instance.
|
||||
*
|
||||
*/
|
||||
std::string evaluate(/* const */ Transaction *t = nullptr) const noexcept;
|
||||
std::string evaluate(const Transaction *t = nullptr) const noexcept;
|
||||
|
||||
|
||||
inline bool containsMacro() const noexcept {
|
||||
@@ -122,7 +116,7 @@ class RunTimeString {
|
||||
};
|
||||
|
||||
|
||||
void appendValueTo(/* const */ Transaction *transaction, std::string &v) const noexcept {
|
||||
void appendValueTo(const Transaction *transaction, std::string &v) const noexcept {
|
||||
if (m_variable && transaction) {
|
||||
VariableValues l;
|
||||
m_variable->evaluate(transaction, &l);
|
||||
|
||||
Reference in New Issue
Block a user