This commit is contained in:
2026-09-06 13:52:47 +03:00
parent 1025b978aa
commit 9b459330df
5 changed files with 6 additions and 21 deletions
@@ -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);