mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Cosmetics: Reduce the coding style warnings
This commit is contained in:
@@ -31,7 +31,8 @@ class LogData : public Action {
|
||||
public:
|
||||
explicit LogData(std::string action);
|
||||
|
||||
bool evaluate(Rule *rule, Transaction *transaction, RuleMessage *rm) override;
|
||||
bool evaluate(Rule *rule, Transaction *transaction,
|
||||
RuleMessage *rm) override;
|
||||
|
||||
private:
|
||||
std::string m_data;
|
||||
|
@@ -31,7 +31,8 @@ class Tag : public Action {
|
||||
public:
|
||||
explicit Tag(std::string action);
|
||||
|
||||
bool evaluate(Rule *rule, Transaction *transaction, RuleMessage *rm) override;
|
||||
bool evaluate(Rule *rule, Transaction *transaction,
|
||||
RuleMessage *rm) override;
|
||||
|
||||
private:
|
||||
std::string m_tag;
|
||||
|
@@ -45,7 +45,7 @@ std::string HtmlEntityDecode::evaluate(std::string value,
|
||||
|
||||
// FIXME: html_entities_decode_inplace is not working as expected
|
||||
// temporary disabled to perform the audit_log tests.
|
||||
//html_entities_decode_inplace((unsigned char *)tmp, value.size());
|
||||
// html_entities_decode_inplace((unsigned char *)tmp, value.size());
|
||||
std::string ret("");
|
||||
ret.assign(tmp);
|
||||
free(tmp);
|
||||
|
@@ -515,7 +515,8 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((!m_log_message.empty() || !m_log_data.empty()) && !ruleMessage->m_match.empty()) {
|
||||
if ((!m_log_message.empty() || !m_log_data.empty())
|
||||
&& !ruleMessage->m_match.empty()) {
|
||||
ruleMessage->m_data = m_log_data;
|
||||
trasn->m_rulesMessages.push_back(ruleMessage);
|
||||
} else {
|
||||
|
@@ -1195,7 +1195,8 @@ int Transaction::processLogging(int returned_code) {
|
||||
#endif
|
||||
std::list<std::pair<int, std::string>>::iterator it;
|
||||
parts = this->m_rules->audit_log->m_parts;
|
||||
debug(7, "AuditLog parts before modification(s): " + std::to_string(parts) + ".");
|
||||
debug(7, "AuditLog parts before modification(s): " +
|
||||
std::to_string(parts) + ".");
|
||||
for (it = m_auditLogModifier.begin();
|
||||
it != m_auditLogModifier.end(); ++it) {
|
||||
std::pair <int, std::string> p = *it;
|
||||
@@ -1219,7 +1220,8 @@ int Transaction::processLogging(int returned_code) {
|
||||
bool saved = this->m_rules->audit_log->saveIfRelevant(this, parts);
|
||||
if (saved) {
|
||||
#ifndef NO_LOGS
|
||||
debug(8, "Request was relevant to be saved. Parts: " + std::to_string(parts));
|
||||
debug(8, "Request was relevant to be saved. Parts: " +
|
||||
std::to_string(parts));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user