fixes
This commit is contained in:
@@ -8,7 +8,6 @@ bool parseBasic(const PIString & auth_header, PIString & user, PIString & pass)
|
||||
if (!auth_header.startsWith("Basic "_a)) return false;
|
||||
PIString rest = auth_header.mid(6).trimmed();
|
||||
if (rest.isEmpty()) return false;
|
||||
if (rest.size() % 4 != 0) return false;
|
||||
PIByteArray decoded = PIByteArray::fromBase64(rest);
|
||||
if (decoded.isEmpty()) return false;
|
||||
PIString creds = PIString::fromUTF8(decoded);
|
||||
|
||||
Reference in New Issue
Block a user