From 0bf6ed766c58f34da6f1edd81ca431177b826686 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 18 Aug 2023 11:17:36 +0100 Subject: Always enable HTTP parameters for user statistics. --- src/modules/m_httpd_stats.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/modules/m_httpd_stats.cpp') diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 01a67a968..7fc78736d 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -451,7 +451,6 @@ class ModuleHttpStats final private: HTTPdAPI API; ISupport::EventProvider isupportevprov; - bool enableparams = false; public: ModuleHttpStats() @@ -463,16 +462,6 @@ public: isevprov = &isupportevprov; } - void ReadConfig(ConfigStatus& status) override - { - const auto& conf = ServerInstance->Config->ConfValue("httpstats"); - - // Parameterized queries may cause a performance issue - // Due to the sheer volume of data - // So default them to disabled - enableparams = conf->getBool("enableparams"); - } - ModResult OnHTTPRequest(HTTPRequest& request) override { if (request.GetPath().compare(0, 6, "/stats")) @@ -499,10 +488,7 @@ public: } else if (request.GetPath() == "/stats/users") { - if (enableparams) - Stats::ListUsers(serializer, request.GetParsedURI().query_params); - else - Stats::Users(serializer); + Stats::ListUsers(serializer, request.GetParsedURI().query_params); } else { -- cgit v1.3.1-10-gc9f91