aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-11-24 05:57:55 +0000
committerGravatar Sadie Powell2021-11-24 05:57:55 +0000
commit167df45be9ccc4cb0569c818fb6e86d394ffc2d6 (patch)
tree6fd1c5f0dcce62983eafc4e311729da4ea5be40c /src/modules/m_httpd_stats.cpp
parentEscape the real and displayed hostnames in httpd_stats. (diff)
Escape the IP address in httpd_stats.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index 58bf32ee9..9c6454c5a 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -235,7 +235,7 @@ namespace Stats
<< lu->GetClass()->GetName() << "</connectclass><lastmsg>"
<< lu->idle_lastmsg << "</lastmsg>";
- data << "<ipaddress>" << u->GetIPString() << "</ipaddress>";
+ data << "<ipaddress>" << Sanitize(u->GetIPString()) << "</ipaddress>";
DumpMeta(data, u);