aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_acl.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-07-24 18:29:43 +0100
committerGravatar Peter Powell2018-07-24 21:55:10 +0100
commit97a1d6429a735eb279496df010d04e3f42aa4e22 (patch)
treea201d8ffe678e5929a2b1d373eef8082d8c6150d /src/modules/m_httpd_acl.cpp
parentFix building on Windows. (diff)
Make more config stuff case insensitive.
Diffstat (limited to 'src/modules/m_httpd_acl.cpp')
-rw-r--r--src/modules/m_httpd_acl.cpp6
1 files changed, 3 insertions, 3 deletions
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");
}