summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_config.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-17 02:14:44 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-17 02:14:44 +0000
commitbf6724c049ba0f156544c49aab2008d6280e5ffa (patch)
tree0c56caccf906b87575dfefe52acc526f38c1fc81 /src/modules/m_httpd_config.cpp
parent62a1eab66838294f2b88d5ea94c1678c167d6189 (diff)
Rewrite ConfigReader again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11879 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd_config.cpp')
-rw-r--r--src/modules/m_httpd_config.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_httpd_config.cpp b/src/modules/m_httpd_config.cpp
index 988ba3977..fa8f5f95f 100644
--- a/src/modules/m_httpd_config.cpp
+++ b/src/modules/m_httpd_config.cpp
@@ -90,9 +90,10 @@ class ModuleHttpStats : public Module
for (ConfigDataHash::iterator x = ServerInstance->Config->config_data.begin(); x != ServerInstance->Config->config_data.end(); ++x)
{
data << "&lt;" << x->first << " ";
- for (KeyValList::iterator j = x->second.begin(); j != x->second.end(); j++)
+ ConfigTag* tag = x->second;
+ for (std::vector<KeyVal>::iterator j = tag->items.begin(); j != tag->items.end(); j++)
{
- data << j->first << "=&quot;" << j->second << "&quot; ";
+ data << Sanitize(j->first) << "=&quot;" << Sanitize(j->second) << "&quot; ";
}
data << "&gt;<br>";
}