forked from TrueCloudLab/rclone
jottacloud: use RawURLEncoding when decoding base64 encoded login token - fixes #3945
This commit is contained in:
parent
481c8a40ea
commit
4a8b548add
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ func shouldRetry(resp *http.Response, err error) (bool, error) {
|
||||||
|
|
||||||
// doAuth runs the actual token request
|
// doAuth runs the actual token request
|
||||||
func doAuth(ctx context.Context, srv *rest.Client, loginTokenBase64 string, m configmap.Mapper) (token oauth2.Token, err error) {
|
func doAuth(ctx context.Context, srv *rest.Client, loginTokenBase64 string, m configmap.Mapper) (token oauth2.Token, err error) {
|
||||||
loginTokenBytes, err := base64.StdEncoding.DecodeString(loginTokenBase64)
|
loginTokenBytes, err := base64.RawURLEncoding.DecodeString(loginTokenBase64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return token, err
|
return token, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue