diff options
| author | 2021-11-24 04:58:46 +0000 | |
|---|---|---|
| committer | 2021-11-24 04:58:46 +0000 | |
| commit | 1953470737263fc16c4f92cc9e69bcf130d90571 (patch) | |
| tree | f11c1cec0c7cfa9e448c137664ded6315496932c /src/modules/m_httpd_stats.cpp | |
| parent | Remind users about the `selfsigned` option to inspircd-testssl. (diff) | |
Escape the real and displayed hostnames in httpd_stats.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 55cd6e23f..58bf32ee9 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -216,7 +216,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>"; |
