aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_acl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-05-10 16:10:14 +0100
committerGravatar Sadie Powell2021-05-10 20:09:55 +0100
commit73695c4fde78a2fde0ca8badc05890d4c11a0ce5 (patch)
tree04bd67979656c49d74ca13b730857997f4782a71 /src/modules/m_httpd_acl.cpp
parentUse the contents of the link data map when using the 1206 protocol. (diff)
Refactor the Base64 encoding and decoding functions.
Diffstat (limited to 'src/modules/m_httpd_acl.cpp')
-rw-r--r--src/modules/m_httpd_acl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_httpd_acl.cpp b/src/modules/m_httpd_acl.cpp
index 2731e2bda..cca21fbd5 100644
--- a/src/modules/m_httpd_acl.cpp
+++ b/src/modules/m_httpd_acl.cpp
@@ -184,7 +184,7 @@ class ModuleHTTPAccessList : public Module, public HTTPACLEventListener
std::string pass;
sep.GetToken(base64);
- std::string userpass = Base64ToBin(base64);
+ std::string userpass = Base64::Decode(base64);
ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "HTTP authorization: %s (%s)", userpass.c_str(), base64.c_str());
irc::sepstream userpasspair(userpass, ':');