mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +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; \
|
to = (from == PropertyNotSetConfigBoolean) ? default : from; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define merge_ruleengine_value(to, from, default) \
|
||||||
|
if (to == PropertyNotSetRuleEngine) { \
|
||||||
|
to = (from == PropertyNotSetRuleEngine) ? default : from; \
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
namespace modsecurity {
|
namespace modsecurity {
|
||||||
@ -349,9 +354,8 @@ class RulesProperties {
|
|||||||
return amount_of_rules;
|
return amount_of_rules;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (from->m_secRuleEngine != PropertyNotSetRuleEngine) {
|
merge_ruleengine_value(to->m_secRuleEngine, from->m_secRuleEngine,
|
||||||
to->m_secRuleEngine = from->m_secRuleEngine;
|
PropertyNotSetRuleEngine);
|
||||||
}
|
|
||||||
|
|
||||||
merge_boolean_value(to->m_secRequestBodyAccess,
|
merge_boolean_value(to->m_secRequestBodyAccess,
|
||||||
from->m_secRequestBodyAccess,
|
from->m_secRequestBodyAccess,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user