decoded plaintext credentials before params get re-encoded in ssApiClient (#862)

This commit is contained in:
Penelope Gwen 2024-12-19 20:31:07 -08:00 committed by GitHub
parent ca58551b94
commit ae65922253
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -295,12 +295,12 @@ export const ssApiClient = (args: {
const token = server.credential;
const params = token.split(/&?\w=/gm);
authParams.u = server.username;
authParams.u = decodeURIComponent(server.username);
if (params?.length === 4) {
authParams.s = params[2];
authParams.t = params[3];
} else if (params?.length === 3) {
authParams.p = params[2];
authParams.p = decodeURIComponent(params[2]);
}
} else {
baseUrl = url;