mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Makes multipart debug messages goes over modsec debug log not stdout
This commit is contained in:
@@ -27,7 +27,7 @@ namespace RequestBodyProcessor {
|
||||
|
||||
class Multipart {
|
||||
public:
|
||||
explicit Multipart(std::string header);
|
||||
Multipart(std::string header, Assay *assay);
|
||||
bool init();
|
||||
|
||||
bool boundaryContainsOnlyValidCharacters();
|
||||
@@ -46,12 +46,13 @@ class Multipart {
|
||||
bool missingSemicolon;
|
||||
bool invalidQuote;
|
||||
|
||||
private:
|
||||
void debug(int a, std::string str) {
|
||||
std::cout << "Debug: " << str << std::endl;
|
||||
m_assay->debug(a, str);
|
||||
}
|
||||
private:
|
||||
std::string m_boundary;
|
||||
std::string m_header;
|
||||
Assay *m_assay;
|
||||
};
|
||||
|
||||
} // namespace RequestBodyProcessor
|
||||
|
Reference in New Issue
Block a user