Escape the IP address in httpd_stats.

This commit is contained in:
Sadie Powell 2021-11-24 05:57:55 +00:00
parent 1953470737
commit 167df45be9

View File

@ -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);