mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
decoded plaintext credentials before params get re-encoded in ssApiClient (#862)
This commit is contained in:
committed by
GitHub
parent
ca58551b94
commit
ae65922253
@@ -295,12 +295,12 @@ export const ssApiClient = (args: {
|
|||||||
const token = server.credential;
|
const token = server.credential;
|
||||||
const params = token.split(/&?\w=/gm);
|
const params = token.split(/&?\w=/gm);
|
||||||
|
|
||||||
authParams.u = server.username;
|
authParams.u = decodeURIComponent(server.username);
|
||||||
if (params?.length === 4) {
|
if (params?.length === 4) {
|
||||||
authParams.s = params[2];
|
authParams.s = params[2];
|
||||||
authParams.t = params[3];
|
authParams.t = params[3];
|
||||||
} else if (params?.length === 3) {
|
} else if (params?.length === 3) {
|
||||||
authParams.p = params[2];
|
authParams.p = decodeURIComponent(params[2]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
baseUrl = url;
|
baseUrl = url;
|
||||||
|
|||||||
Reference in New Issue
Block a user