From 4a8b548add73ffed3f2c981f60423ea9e96e7493 Mon Sep 17 00:00:00 2001 From: buengese Date: Sat, 22 Feb 2020 01:15:14 +0100 Subject: [PATCH] jottacloud: use RawURLEncoding when decoding base64 encoded login token - fixes #3945 --- backend/jottacloud/jottacloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go index 990dc36f8..8f414ff7d 100644 --- a/backend/jottacloud/jottacloud.go +++ b/backend/jottacloud/jottacloud.go @@ -253,7 +253,7 @@ func shouldRetry(resp *http.Response, err error) (bool, error) { // doAuth runs the actual token request 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 { return token, err }