mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Refactoring: Renames RulesProperties to RulesSetProperties
This commit is contained in:
@@ -73,12 +73,12 @@ Multipart::Multipart(const std::string &header, Transaction *transaction)
|
||||
Multipart::~Multipart() {
|
||||
ms_dbg_a(m_transaction, 4,
|
||||
"Multipart: Cleanup started (keep files set to " \
|
||||
+ RulesProperties::configBooleanString(
|
||||
+ RulesSetProperties::configBooleanString(
|
||||
m_transaction->m_rules->m_uploadKeepFiles) \
|
||||
+ ")");
|
||||
|
||||
if (m_transaction->m_rules->m_uploadKeepFiles
|
||||
!= RulesProperties::TrueConfigBoolean) {
|
||||
!= RulesSetProperties::TrueConfigBoolean) {
|
||||
for (MultipartPart *m : m_parts) {
|
||||
if (m->m_type == MULTIPART_FILE) {
|
||||
if (!m->m_tmp_file_name.empty()) {
|
||||
@@ -514,9 +514,9 @@ int Multipart::process_part_data(std::string *error, size_t offset) {
|
||||
/* add data to the part we are building */
|
||||
if (m_mpp->m_type == MULTIPART_FILE) {
|
||||
bool extract = m_transaction->m_rules->m_uploadKeepFiles \
|
||||
== RulesProperties::TrueConfigBoolean \
|
||||
== RulesSetProperties::TrueConfigBoolean \
|
||||
|| m_transaction->m_rules->m_tmpSaveUploadedFiles \
|
||||
== RulesProperties::TrueConfigBoolean;
|
||||
== RulesSetProperties::TrueConfigBoolean;
|
||||
|
||||
/* remember where we started */
|
||||
if (m_mpp->m_length == 0) {
|
||||
|
@@ -48,7 +48,7 @@ XML::~XML() {
|
||||
bool XML::init() {
|
||||
//xmlParserInputBufferCreateFilenameFunc entity;
|
||||
if (m_transaction->m_rules->m_secXMLExternalEntity
|
||||
== RulesProperties::TrueConfigBoolean) {
|
||||
== RulesSetProperties::TrueConfigBoolean) {
|
||||
/*entity = */xmlParserInputBufferCreateFilenameDefault(
|
||||
__xmlParserInputBufferCreateFilename);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user