mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 10:20:35 +03:00
actions: Compute the rule association during rules load
This commit is contained in:
@@ -51,7 +51,15 @@ class RuleWithOperator : public RuleWithActions {
|
||||
RuleWithOperator(const RuleWithOperator &op)
|
||||
: RuleWithActions(op),
|
||||
m_variables(op.m_variables),
|
||||
m_operator(op.m_operator) { };
|
||||
m_operator(op.m_operator)
|
||||
{
|
||||
for (auto &a : *m_variables.get()) {
|
||||
variables::RuleVariable *vrule = dynamic_cast<variables::RuleVariable *>(a);
|
||||
if (vrule != nullptr) {
|
||||
vrule->populate(this);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
RuleWithOperator &operator=(const RuleWithOperator& r) {
|
||||
RuleWithActions::operator = (r);
|
||||
|
||||
Reference in New Issue
Block a user