We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161c256 commit 3c41751Copy full SHA for 3c41751
headers/modsecurity/rules_properties.h
@@ -42,6 +42,11 @@
42
to = (from == PropertyNotSetConfigBoolean) ? default : from; \
43
}
44
45
+#define merge_ruleengine_value(to, from, default) \
46
+ if (to == PropertyNotSetRuleEngine) { \
47
+ to = (from == PropertyNotSetRuleEngine) ? default : from; \
48
+ }
49
+
50
#ifdef __cplusplus
51
52
namespace modsecurity {
@@ -349,9 +354,8 @@ class RulesProperties {
349
354
return amount_of_rules;
350
355
351
356
352
- if (from->m_secRuleEngine != PropertyNotSetRuleEngine) {
353
- to->m_secRuleEngine = from->m_secRuleEngine;
- }
357
+ merge_ruleengine_value(to->m_secRuleEngine, from->m_secRuleEngine,
358
+ PropertyNotSetRuleEngine);
359
360
merge_boolean_value(to->m_secRequestBodyAccess,
361
from->m_secRequestBodyAccess,
0 commit comments