mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Better support for multipart
ModSecurity v2.x parser was ported into 3.x branch. All the multipart related variables should be workbale.
This commit is contained in:
12
src/rules.cc
12
src/rules.cc
@@ -222,6 +222,12 @@ int Rules::merge(Driver *from) {
|
||||
this->requestBodyLimitAction = from->requestBodyLimitAction;
|
||||
this->responseBodyLimitAction = from->responseBodyLimitAction;
|
||||
|
||||
this->uploadKeepFiles = from->uploadKeepFiles;
|
||||
this->uploadFileLimit = from->uploadFileLimit;
|
||||
this->uploadFileMode = from->uploadFileMode;
|
||||
this->uploadDirectory = from->uploadDirectory;
|
||||
this->tmpSaveUploadedFiles = from->tmpSaveUploadedFiles;
|
||||
|
||||
for (std::set<std::string>::iterator
|
||||
it = from->m_responseBodyTypeToBeInspected.begin();
|
||||
it != from->m_responseBodyTypeToBeInspected.end(); ++it) {
|
||||
@@ -278,6 +284,12 @@ int Rules::merge(Rules *from) {
|
||||
this->requestBodyLimitAction = from->requestBodyLimitAction;
|
||||
this->responseBodyLimitAction = from->responseBodyLimitAction;
|
||||
|
||||
this->uploadKeepFiles = from->uploadKeepFiles;
|
||||
this->uploadFileLimit = from->uploadFileLimit;
|
||||
this->uploadFileMode = from->uploadFileMode;
|
||||
this->uploadDirectory = from->uploadDirectory;
|
||||
this->tmpSaveUploadedFiles = from->tmpSaveUploadedFiles;
|
||||
|
||||
if (from->m_debugLog && this->m_debugLog &&
|
||||
from->m_debugLog->isLogFileSet()) {
|
||||
this->m_debugLog->setDebugLogFile(from->m_debugLog->getDebugLogFile());
|
||||
|
Reference in New Issue
Block a user