diff options
| author | 2021-11-24 07:17:50 +0000 | |
|---|---|---|
| committer | 2021-11-24 07:17:50 +0000 | |
| commit | 2ec53e10ee5325df12586c72471efabb07cb9d70 (patch) | |
| tree | 7f06c35178be0c65048d9f2ff30b73b2bebb36a5 /src/modules/m_httpd_stats.cpp | |
| parent | Don't allow routing INFO to remote servers. (diff) | |
| parent | Make parsing websocket proxy headers more robust. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index bcbcfba81..5d35d6fdf 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -210,7 +210,7 @@ namespace Stats { data << "<user>"; data << "<nickname>" << u->nick << "</nickname><uuid>" << u->uuid << "</uuid><realhost>" - << u->GetRealHost() << "</realhost><displayhost>" << u->GetDisplayedHost() << "</displayhost><realname>" + << Sanitize(u->GetRealHost()) << "</realhost><displayhost>" << Sanitize(u->GetDisplayedHost()) << "</displayhost><realname>" << Sanitize(u->GetRealName()) << "</realname><server>" << u->server->GetName() << "</server><signon>" << u->signon << "</signon><age>" << u->age << "</age>"; @@ -229,7 +229,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); |
