mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Renames class Assay to Transaction
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user