]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_httpd_stats: Also sanitize other server gecos
authorAnatole Denis <natolumin@rezel.net>
Sun, 9 Oct 2016 16:19:23 +0000 (18:19 +0200)
committerAnatole Denis <natolumin@rezel.net>
Sun, 9 Oct 2016 16:21:18 +0000 (18:21 +0200)
src/modules/m_httpd_stats.cpp

index 2fc7ca7dea33656e4c79dfcf5c7723176daf75f1..e17bf514f0835d494e57f60074bd5e30b009a55a 100644 (file)
@@ -213,7 +213,7 @@ class ModuleHttpStats : public Module
                                        data << "<server>";
                                        data << "<servername>" << b->servername << "</servername>";
                                        data << "<parentname>" << b->parentname << "</parentname>";
                                        data << "<server>";
                                        data << "<servername>" << b->servername << "</servername>";
                                        data << "<parentname>" << b->parentname << "</parentname>";
-                                       data << "<gecos>" << b->gecos << "</gecos>";
+                                       data << "<gecos>" << Sanitize(b->gecos) << "</gecos>";
                                        data << "<usercount>" << b->usercount << "</usercount>";
 // This is currently not implemented, so, commented out.
 //                                     data << "<opercount>" << b->opercount << "</opercount>";
                                        data << "<usercount>" << b->usercount << "</usercount>";
 // This is currently not implemented, so, commented out.
 //                                     data << "<opercount>" << b->opercount << "</opercount>";