mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 18:54:23 +03:00
Makes RULE collection to be resolved inside a macro expansion
This commit is contained in:
@@ -90,9 +90,9 @@ bool SetVar::init(std::string *error) {
|
||||
bool SetVar::evaluate(Rule *rule, Transaction *transm_parser_payload) {
|
||||
std::string targetValue;
|
||||
std::string m_variableNameExpanded = MacroExpansion::expand(m_variableName,
|
||||
transm_parser_payload);
|
||||
rule, transm_parser_payload);
|
||||
std::string resolvedPre = MacroExpansion::expand(m_predicate,
|
||||
transm_parser_payload);
|
||||
rule, transm_parser_payload);
|
||||
|
||||
if (m_operation == setOperation) {
|
||||
targetValue = resolvedPre;
|
||||
|
||||
Reference in New Issue
Block a user