mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Makes m_serverIpAddress a shared pointer
This commit is contained in:
@@ -40,7 +40,7 @@ std::string RuleMessage::_details(const RuleMessage *rm) {
|
||||
for (auto &a : rm->m_tags) {
|
||||
msg.append(" [tag \"" + a + "\"]");
|
||||
}
|
||||
msg.append(" [hostname \"" + std::string(rm->m_serverIpAddress) \
|
||||
msg.append(" [hostname \"" + *rm->m_serverIpAddress.get() \
|
||||
+ "\"]");
|
||||
msg.append(" [uri \"" + utils::string::limitTo(200, rm->m_uriNoQueryStringDecoded) + "\"]");
|
||||
msg.append(" [unique_id \"" + rm->m_id + "\"]");
|
||||
@@ -53,7 +53,7 @@ std::string RuleMessage::_details(const RuleMessage *rm) {
|
||||
std::string RuleMessage::_errorLogTail(const RuleMessage *rm) {
|
||||
std::string msg;
|
||||
|
||||
msg.append("[hostname \"" + std::string(rm->m_serverIpAddress) + "\"]");
|
||||
msg.append("[hostname \"" + *rm->m_serverIpAddress.get() + "\"]");
|
||||
msg.append(" [uri \"" + utils::string::limitTo(200, rm->m_uriNoQueryStringDecoded) + "\"]");
|
||||
msg.append(" [unique_id \"" + rm->m_id + "\"]");
|
||||
|
||||
|
Reference in New Issue
Block a user