mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Coding style fixes
This commit is contained in:
@@ -69,21 +69,16 @@ std::string RuleMessage::log(const RuleMessage *rm, int props, int code) {
|
||||
msg.append("[client " + std::string(rm->m_clientIpAddress) + "] ");
|
||||
}
|
||||
|
||||
if (rm->m_isDisruptive)
|
||||
{
|
||||
if (rm->m_isDisruptive) {
|
||||
msg.append("ModSecurity: Access denied with code ");
|
||||
if (code == -1) {
|
||||
msg.append("%d");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
msg.append(std::to_string(code));
|
||||
}
|
||||
msg.append(" (phase ");
|
||||
msg.append(std::to_string(rm->m_rule->m_phase - 1) + "). ");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
msg.append("ModSecurity: Warning. ");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user