Renames class Assay to Transaction

This commit is contained in:
Felipe Zimmerle
2016-01-13 14:38:37 -03:00
parent f3fd5d6621
commit a51e707517
249 changed files with 2961 additions and 1235 deletions

View File

@@ -24,7 +24,7 @@
namespace modsecurity {
namespace RequestBodyProcessor {
Multipart::Multipart(std:: string header, Assay *assay)
Multipart::Multipart(std:: string header, Transaction *transaction)
: crlf(false),
containsDataAfter(false),
containsDataBefore(false),
@@ -33,7 +33,7 @@ Multipart::Multipart(std:: string header, Assay *assay)
invalidQuote(false),
boundaryStartsWithWhiteSpace(false),
boundaryIsQuoted(false),
m_assay(assay),
m_transaction(transaction),
m_header(header) {
}

View File

@@ -20,14 +20,14 @@
#ifndef SRC_REQUEST_BODY_PROCESSOR_MULTIPART_H_
#define SRC_REQUEST_BODY_PROCESSOR_MULTIPART_H_
#include "modsecurity/assay.h"
#include "modsecurity/transaction.h"
namespace modsecurity {
namespace RequestBodyProcessor {
class Multipart {
public:
Multipart(std::string header, Assay *assay);
Multipart(std::string header, Transaction *transaction);
bool init();
bool boundaryContainsOnlyValidCharacters();
@@ -47,14 +47,14 @@ class Multipart {
bool invalidQuote;
#ifndef NO_LOGS
void debug(int a, std::string str) {
m_assay->debug(a, str);
m_transaction->debug(a, str);
}
#endif
private:
std::string m_boundary;
std::string m_header;
Assay *m_assay;
Transaction *m_transaction;
};
} // namespace RequestBodyProcessor