From a2665f79932d617cf2296fabec1932eaefe53db7 Mon Sep 17 00:00:00 2001 From: Richard Wang <62804488+ricky9w@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:16:41 +0800 Subject: [PATCH] Fix decode base64 URL --- subscription/parser/raw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subscription/parser/raw.go b/subscription/parser/raw.go index aa7a75c..72205c3 100644 --- a/subscription/parser/raw.go +++ b/subscription/parser/raw.go @@ -39,6 +39,6 @@ func decodeBase64URLSafe(content string) (string, error) { content = strings.ReplaceAll(content, "/", "_") content = strings.ReplaceAll(content, "+", "-") content = strings.ReplaceAll(content, "=", "") - result, err := base64.StdEncoding.DecodeString(content) + result, err := base64.RawURLEncoding.DecodeString(content) return string(result), err }