From 9b60adc8483396017798c7d94516b31b96bd55cf Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Mon, 10 Dec 2018 10:49:16 +0300 Subject: [PATCH] Complete merging of particular rule properties Closes SpiderLabs/ModSecurity-nginx#142 issue. --- headers/modsecurity/rules_properties.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/modsecurity/rules_properties.h b/headers/modsecurity/rules_properties.h index 171d87e2b5..73fab2186c 100644 --- a/headers/modsecurity/rules_properties.h +++ b/headers/modsecurity/rules_properties.h @@ -343,10 +343,12 @@ class RulesProperties { if (from->m_requestBodyLimit.m_set == true) { to->m_requestBodyLimit.m_value = from->m_requestBodyLimit.m_value; + to->m_requestBodyLimit.m_set = true; } if (from->m_responseBodyLimit.m_set == true) { to->m_responseBodyLimit.m_value = from->m_responseBodyLimit.m_value; + to->m_responseBodyLimit.m_set = true; } if (from->m_requestBodyLimitAction != PropertyNotSetBodyLimitAction) { @@ -359,10 +361,12 @@ class RulesProperties { if (from->m_uploadFileLimit.m_set == true) { to->m_uploadFileLimit.m_value = from->m_uploadFileLimit.m_value; + to->m_uploadFileLimit.m_set = true; } if (from->m_uploadFileMode.m_set == true) { to->m_uploadFileMode.m_value = from->m_uploadFileMode.m_value; + to->m_uploadFileMode.m_set = true; } if (from->m_uploadDirectory.m_set == true) {