From ce95a8b193ca0db87b394479868905d89cff39a8 Mon Sep 17 00:00:00 2001 From: milarin Date: Thu, 16 Feb 2023 15:18:06 +0100 Subject: [PATCH] accept all paramters as base64url --- utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.go b/utils.go index 101c16b..9be5d50 100644 --- a/utils.go +++ b/utils.go @@ -59,10 +59,10 @@ func FsEntry2Name(entry os.DirEntry) string { } func DecodeBase64String(str string) (string, error) { - data, err := base64.StdEncoding.DecodeString(str) + data, err := base64.URLEncoding.DecodeString(str) return string(data), err } func EncodeBase64String(str string) string { - return base64.StdEncoding.EncodeToString([]byte(str)) + return base64.URLEncoding.EncodeToString([]byte(str)) }