mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 14:15:46 +03:00
Delays variable name resolution to whenever it is necessary
This commit is contained in:
committed by
Felipe Zimmerle
parent
64bffdebc4
commit
9f0e345f43
@@ -83,10 +83,12 @@ bool Operator::evaluateInternal(Transaction *transaction,
|
||||
|
||||
|
||||
std::string Operator::resolveMatchMessage(Transaction *t,
|
||||
std::string key, std::string value) {
|
||||
const VariableValue *v) {
|
||||
std::string ret = m_match_message;
|
||||
|
||||
if (ret.empty() == true) {
|
||||
const std::string &key = v->getKeyWithCollection();
|
||||
const std::string &value = v->getValue();
|
||||
if (m_couldContainsMacro == false) {
|
||||
ret = "Matched \"Operator `" + m_op + "' with parameter `" +
|
||||
utils::string::limitTo(200, m_param) +
|
||||
|
||||
@@ -128,7 +128,7 @@ class Operator {
|
||||
}
|
||||
|
||||
virtual std::string resolveMatchMessage(Transaction *t,
|
||||
std::string key, std::string value);
|
||||
const VariableValue *v);
|
||||
|
||||
|
||||
std::string m_match_message;
|
||||
|
||||
Reference in New Issue
Block a user