Skip to content

Commit 9b24199

Browse files
defanatorFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Complete merging of particular rule properties
Closes owasp-modsecurity/ModSecurity-nginx#142 issue.
1 parent 4283883 commit 9b24199

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: headers/modsecurity/rules_properties.h

+4
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,12 @@ class RulesProperties {
343343

344344
if (from->m_requestBodyLimit.m_set == true) {
345345
to->m_requestBodyLimit.m_value = from->m_requestBodyLimit.m_value;
346+
to->m_requestBodyLimit.m_set = true;
346347
}
347348

348349
if (from->m_responseBodyLimit.m_set == true) {
349350
to->m_responseBodyLimit.m_value = from->m_responseBodyLimit.m_value;
351+
to->m_responseBodyLimit.m_set = true;
350352
}
351353

352354
if (from->m_requestBodyLimitAction != PropertyNotSetBodyLimitAction) {
@@ -359,10 +361,12 @@ class RulesProperties {
359361

360362
if (from->m_uploadFileLimit.m_set == true) {
361363
to->m_uploadFileLimit.m_value = from->m_uploadFileLimit.m_value;
364+
to->m_uploadFileLimit.m_set = true;
362365
}
363366

364367
if (from->m_uploadFileMode.m_set == true) {
365368
to->m_uploadFileMode.m_value = from->m_uploadFileMode.m_value;
369+
to->m_uploadFileMode.m_set = true;
366370
}
367371

368372
if (from->m_uploadDirectory.m_set == true) {

0 commit comments

Comments
 (0)