mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Implemented merge_ruleengine_value() for RuleEngine
This change makes the SecRuleEngine directive to be merged properly.
This commit is contained in:
parent
161c256333
commit
3c41751eda
@ -42,6 +42,11 @@
|
||||
to = (from == PropertyNotSetConfigBoolean) ? default : from; \
|
||||
}
|
||||
|
||||
#define merge_ruleengine_value(to, from, default) \
|
||||
if (to == PropertyNotSetRuleEngine) { \
|
||||
to = (from == PropertyNotSetRuleEngine) ? default : from; \
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
namespace modsecurity {
|
||||
@ -349,9 +354,8 @@ class RulesProperties {
|
||||
return amount_of_rules;
|
||||
}
|
||||
|
||||
if (from->m_secRuleEngine != PropertyNotSetRuleEngine) {
|
||||
to->m_secRuleEngine = from->m_secRuleEngine;
|
||||
}
|
||||
merge_ruleengine_value(to->m_secRuleEngine, from->m_secRuleEngine,
|
||||
PropertyNotSetRuleEngine);
|
||||
|
||||
merge_boolean_value(to->m_secRequestBodyAccess,
|
||||
from->m_secRequestBodyAccess,
|
||||
|
Loading…
x
Reference in New Issue
Block a user