From 97a1d6429a735eb279496df010d04e3f42aa4e22 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 24 Jul 2018 18:29:43 +0100 Subject: Make more config stuff case insensitive. --- src/modules/m_httpd_acl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_httpd_acl.cpp') diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp index 3f67fffca..2dbc1be69 100644 --- a/src/modules/m_httpd_acl.cpp +++ b/src/modules/m_httpd_acl.cpp @@ -67,16 +67,16 @@ class ModuleHTTPAccessList : public Module, public HTTPACLEventListener while (sep.GetToken(type)) { - if (type == "password") + if (stdalgo::string::equalsci(type, "password")) { username = c->getString("username"); password = c->getString("password"); } - else if (type == "whitelist") + else if (stdalgo::string::equalsci(type, "whitelist")) { whitelist = c->getString("whitelist"); } - else if (type == "blacklist") + else if (stdalgo::string::equalsci(type, "blacklist")) { blacklist = c->getString("blacklist"); } -- cgit v1.3.1-10-gc9f91