From 73695c4fde78a2fde0ca8badc05890d4c11a0ce5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 10 May 2021 16:10:14 +0100 Subject: Refactor the Base64 encoding and decoding functions. --- src/modules/m_httpd_acl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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, ':'); -- cgit v1.3.1-10-gc9f91